TCryptoSignKeyPair
A secret key and a corresponding public key.
Example
SuperStrict
Framework brl.standardio
Import Crypto.Crypto
Local keyPair:TCryptoSignKeyPair = TCryptoSign.KeyGen()
Local s:String = keyPair.ToString()
Print s
Fields
Field secretKey:Byte[CRYPTO_SIGN_SECRETKEYBYTES]
A secret key, that will be used to sign any number of messages
Field publicKey:Byte[CRYPTO_SIGN_PUBLICKEYBYTES]
A public key, that anybody can use to verify that the signature for a message was actually issued by the creator of the public key.
Methods
Method ToString:String() Override
Returns a String representation of the key pair.
Method PublicKeyToString:String()
Returns a String representation of the public key.
Method SecretKeyToString:String()
Returns a String representation of the secret key.
Functions
Function FromString:TCryptoSignKeyPair(keys:String)
Retrieves the key pair from its String representation.
Function FromSecretKey:TCryptoSignKeyPair(sk:String)
Retrieves the secret key from its String representation.
Function FromPublicKey:TCryptoSignKeyPair(pk:String)
Retrieves the public key from its String representation.