Class EphemeralKeyPair
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class EphemeralKeyPair : Serializable
- Inheritance
-
EphemeralKeyPair
- Inherited Members
Constructors
EphemeralKeyPair(EphemeralKeyPair)
public EphemeralKeyPair(EphemeralKeyPair other)
Parameters
other
EphemeralKeyPair
EphemeralKeyPair(PrivateKey, ulong?, byte[]?)
public EphemeralKeyPair(PrivateKey privateKey, ulong? expiryTimestamp = null, byte[]? blinder = null)
Parameters
privateKey
PrivateKeyexpiryTimestamp
ulong?blinder
byte[]
Fields
BLINDER_LENGTH
public static readonly int BLINDER_LENGTH
Field Value
Blinder
public readonly byte[] Blinder
Field Value
- byte[]
DEFAULT_EXPIRY_DURATION
The default expiry duration for an ephemeral key pair is 14 days.
public static readonly int DEFAULT_EXPIRY_DURATION
Field Value
ExpiryTimestamp
A timestamp in seconds indicating when the ephemeral key pair will expire. After expiry, a new EphemeralKeyPair must be generated and a new JWT needs to be created.
public readonly ulong ExpiryTimestamp
Field Value
Nonce
The value passed to the IdP when the user logs in.
public readonly string Nonce
Field Value
PublicKey
A public key used to verify transactions. This public key is not tied to any account on the chain as it is ephemeral (not permanent) in nature.
public EphemeralPublicKey PublicKey
Field Value
Methods
Deserialize(Deserializer)
public static EphemeralKeyPair Deserialize(Deserializer d)
Parameters
Returns
Generate()
public static EphemeralKeyPair Generate()
Returns
IsExpired()
public virtual bool IsExpired()
Returns
Serialize(Serializer)
public override void Serialize(Serializer s)
Parameters
Sign(byte[])
public EphemeralSignature Sign(byte[] data)
Parameters
data
byte[]