scripts-dev/federation_client.py
def decode_signing_key_base64(algorithm, version, key_base64):
    """Decode a base64 encoded signing key
    Args:
        algorithm (str): The algorithm the key is for (currently "ed25519").
        version (str): Identifies this key out of the keys for this entity.
        key_base64 (str): Base64 encoded bytes of the key.
    Returns:
        A SigningKey object.
    """
    if algorithm == NACL_ED25519:
        key_bytes = decode_base64(key_base64)
        key = nacl.signing.SigningKey(key_bytes)
        key.version = version
        key.alg = NACL_ED25519
        return key
    else:
        raise ValueError("Unsupported algorithm %s" % (algorithm,))
Decode a base64 encoded signing key
    Args:
        algorithm (str): The algorithm the key is for (currently "ed25519").
        version (str): Identifies this key out of the keys for this entity.
        key_base64 (str): Base64 encoded bytes of the key.
    Returns:
        A SigningKey object.
    
Decode a base64 encoded signing key
Decode a base64 encoded signing key
def decode_signing_key_base64(algorithm, version, key_base64):
    if algorithm == NACL_ED25519:
        key_bytes = decode_base64(key_base64)
        key = nacl.signing.SigningKey(key_bytes)
        key.version = version
        key.alg = NACL_ED25519
        return key
    else:
        raise ValueError("Unsupported algorithm %s" % (algorithm,))
def decode_signing_key_base64 ( algorithm , version , key_base64 ) : if algorithm == NACL_ED25519 : key_bytes = decode_base64 ( key_base64 ) key = nacl . signing . SigningKey ( key_bytes ) key . version = version key . alg = NACL_ED25519 return key else : raise ValueError ( "Unsupported algorithm %s" % ( algorithm , ) )
Decode a base64 encoded signing key
Decode a base64 encoded signing key
"""Decode a base64 encoded signing key
    Args:
        algorithm (str): The algorithm the key is for (currently "ed25519").
        version (str): Identifies this key out of the keys for this entity.
        key_base64 (str): Base64 encoded bytes of the key.
    Returns:
        A SigningKey object.
    """
A SigningKey object.
A SigningKey object .
algorithm
The algorithm the key is for (currently "ed25519").
The algorithm the key is for ( currently " ed25519 " ) .
version
Identifies this key out of the keys for this entity.
Identifies this key out of the keys for this entity .
key_base64
Base64 encoded bytes of the key.
Base64 encoded bytes of the key .