class Sodium::Sign::PublicKey
- Sodium::Sign::PublicKey
- Sodium::Key
- Reference
- Object
Defined in:
sodium/sign/public_key.crConstant Summary
-
KEY_SIZE =
LibSodium.crypto_sign_publickeybytes.to_i
-
SIG_SIZE =
LibSodium.crypto_sign_bytes.to_i
Constructors
Instance Method Summary
- #to_curve25519 : CryptoBox::PublicKey
-
#to_slice : Bytes
Returns key
- #verify_detached(message : Bytes, sig : Bytes)
-
#verify_detached(message, sig : Bytes)
Verify signature made by
secret_key.sign_detached(message)
Raises on verification failure.
Instance methods inherited from class Sodium::Key
to_slice : Bytes
to_slice
Instance methods inherited from module Sodium::Wipe
close
close,
finalize
finalize
Constructor Detail
Instance Method Detail
def verify_detached(message, sig : Bytes)
#
Verify signature made by secret_key.sign_detached(message)
Raises on verification failure.