Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
ed25519
v1.0.1
Ed25519
Curve
Curve25519
ExtendedPoint
Hex
Point
PrivKey
PubKey
RistrettoPoint
Signature
SigningKey
SigType
Utils
VerifyError
VerifyKey
Built with Crystal 1.9.2
2023-10-08 04:05:29 UTC
class
Ed25519::SigningKey
Ed25519::SigningKey
Reference
Object
Defined in:
ed25519/signing_key.cr
Constructors
.new
(key_bytes : Bytes = (
Random
::
Secure
.hex(
32
)).hexbytes)
Instance Method Summary
#key_bytes
: Bytes
#key_size
#sign
(message : Bytes | String) : Bytes
#verify_key
: VerifyKey
Constructor Detail
def self.
new
(key_bytes : Bytes = (
Random
::
Secure
.hex(
32
)).hexbytes)
#
[
View source
]
Instance Method Detail
def
key_bytes
: Bytes
#
[
View source
]
def
key_size
#
[
View source
]
def
sign
(message : Bytes | String) : Bytes
#
[
View source
]
def
verify_key
:
VerifyKey
#
[
View source
]