Table of Contents

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 PrivateKey
expiryTimestamp ulong?
blinder byte[]

Fields

BLINDER_LENGTH

public static readonly int BLINDER_LENGTH

Field Value

int

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

int

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

ulong

Nonce

The value passed to the IdP when the user logs in.

public readonly string Nonce

Field Value

string

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

EphemeralPublicKey

Methods

Deserialize(Deserializer)

public static EphemeralKeyPair Deserialize(Deserializer d)

Parameters

d Deserializer

Returns

EphemeralKeyPair

Generate()

public static EphemeralKeyPair Generate()

Returns

EphemeralKeyPair

IsExpired()

public virtual bool IsExpired()

Returns

bool

Serialize(Serializer)

public override void Serialize(Serializer s)

Parameters

s Serializer

Sign(byte[])

public EphemeralSignature Sign(byte[] data)

Parameters

data byte[]

Returns

EphemeralSignature