Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
RNS::Cryptography::X25519PrivateKey
Inherits
Reference
<
Object
Constants
DELAY_WINDOW = 10.seconds
MAX_EXEC_TIME = 0.5.seconds
MIN_EXEC_TIME = 0.002.seconds
Constructors
from_private_bytes
(data :
Bytes
) :
X25519PrivateKey
Source
generate
Source
new
(private_bytes :
Bytes
)
Source
Instance methods
exchange
(peer_public_key :
X25519PublicKey
) :
Bytes
Source
exchange
(peer_public_key :
Bytes
) :
Bytes
Source
private_bytes
Source
public_key
Source