Class: BeaconCohortSigningSession ​
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:51
Implements ​
Constructors ​
Constructor ​
new BeaconCohortSigningSession(
params):BeaconCohortSigningSession
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:127
Creates a new instance of BeaconCohortSigningSession.
Parameters ​
params ​
Parameters to initialize the signing session.
Returns ​
BeaconCohortSigningSession
Properties ​
aggregatedNonce? ​
optionalaggregatedNonce?:Uint8Array<ArrayBufferLike>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:80
Aggregated nonce from all participants.
Implementation of ​
SigningSession.aggregatedNonce
cohort ​
cohort:
AggregateBeaconCohort
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:62
DID of the coordinator.
Implementation of ​
id ​
id:
string
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:56
Unique identifier for the signing session.
Implementation of ​
musig2Session? ​
optionalmusig2Session?:Session
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:116
Musig2 session for signing operations.
nonceContributions ​
nonceContributions:
Map<string,Nonce>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:74
Map of nonce contributions from participants.
Implementation of ​
SigningSession.nonceContributions
nonceSecrets? ​
optionalnonceSecrets?:bigint
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:110
Secrets for nonces contributed by participants.
Implementation of ​
partialSignatures ​
partialSignatures:
Map<string,Uint8Array<ArrayBufferLike>>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:86
Map of partial signatures from participants.
Implementation of ​
SigningSession.partialSignatures
pendingTx ​
pendingTx:
Transaction
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:68
Pending transaction to be signed.
Implementation of ​
processedRequests ​
processedRequests:
Record<string,string>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:104
Map of processed requests from participants.
Implementation of ​
SigningSession.processedRequests
signature? ​
optionalsignature?:Uint8Array<ArrayBufferLike>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:92
Final signature for the transaction.
Implementation of ​
status ​
status:
SIGNING_SESSION_STATUS_TYPE
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:98
Current status of the signing session.
Implementation of ​
Methods ​
addNonceContribution() ​
addNonceContribution(
from,nonceContribution):void
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:158
Adds a nonce contribution from a participant to the session.
Parameters ​
from ​
string
The public key of the participant contributing the nonce.
nonceContribution ​
Uint8Array
The nonce contribution from the participant.
Returns ​
void
Throws ​
If the session is not awaiting nonce contributions or if the contribution is invalid.
addPartialSignature() ​
addPartialSignature(
from,partialSignature):void
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:206
Adds a partial signature from a participant to the session.
Parameters ​
from ​
string
The public key of the participant contributing the partial signature.
partialSignature ​
Uint8Array
The partial signature from the participant.
Returns ​
void
generateAggregatedNonce() ​
generateAggregatedNonce():
Uint8Array
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:183
Generates the aggregated nonce from all nonce contributions for the session.
Returns ​
Uint8Array
The aggregated nonce.
Throws ​
If not all nonce contributions have been received.
generateFinalSignature() ​
generateFinalSignature():
Promise<Uint8Array<ArrayBufferLike>>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:222
Generates the final signature from all partial signatures.
Returns ​
Promise<Uint8Array<ArrayBufferLike>>
The final aggregated signature.
generatePartialSignature() ​
generatePartialSignature(
participantSk):Uint8Array
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:253
Generates a partial signature for the session using the participant's secret key.
Parameters ​
participantSk ​
Uint8Array
The secret key of the participant.
Returns ​
Uint8Array
The partial signature generated by the participant.
getAuthorizationRequest() ​
getAuthorizationRequest(
to,from):BeaconCohortAuthorizationRequestMessage
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:141
Gets the authorization request message for a participant.
Parameters ​
to ​
string
The public key of the participant to whom the request is sent.
from ​
string
The public key of the participant sending the request.
Returns ​
BeaconCohortAuthorizationRequestMessage
The authorization request message.
isComplete() ​
isComplete():
boolean
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:289
Checks if the signing session is a completed state.
Returns ​
boolean
True if the session is complete, false otherwise.
isFailed() ​
isFailed():
boolean
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:297
Checks if the signing session is in a failed state.
Returns ​
boolean
True if the session has failed, false otherwise.
toJSON() ​
toJSON():
Partial<BeaconCohortSigningSession>
Defined in: packages/method/src/core/beacon/aggregation/session/index.ts:269
Converts the signing session instance to a JSON object representation.
Returns ​
Partial<BeaconCohortSigningSession>
The JSON object representation of the signing session.