latest
← All Versions
📖 Package Overview
No package documentation available.
Types
type AddEphKeyRequest
type KeygenOpts
type KeygenOpts struct { // T is the signature threshold (how many key shares are required to generate signature). T uint8 `json:"t" validate:"required,min=2"` // N is the number of key shares. N uint8 `json:"n" validate:"required"` // Metadata is a collection of tagged values to be associated with a key share. // All shares will contain the same set of pairs. Metadata []types.TaggedValue `json:"metadata" validate:"required"` // SignAlg is the chosen signature algorithm for key generation. SignAlg types.SignatureAlgorithm `json:"signAlg" validate:"required"` // Attach eph key to the generated key // So having it as string we ensure it's in the same shape during verifying and it was during signing EphClaim *string `json:"ephClaim,omitempty"` }
type QuorumChangeRequest
type QuorumChangeRequest struct { // New threshold NewT uint8 `json:"new_t" validate:"required,min=2"` // New quorum nodes (new_n). Old quorum nodes (n). // // (new_n >= n || new_n <= n) && new_n >= new_t NewNodes *[]string `json:"new_nodes,omitempty" validate:"omitempty"` // ID of the previously generated distributed key, in hex KeyID string `json:"key_id" validate:"required"` // Public key of the generated key. Affine representation in hex. PublicKey string `json:"public_key" validate:"required"` // Signature algorithm of the key SignAlg types.SignatureAlgorithm `json:"sign_alg" validate:"required"` }
type RevokeEphKeyRequest
type SignOpts
type SignOpts struct { /// Signature threshold (how many key shares are required to generate signature) T uint8 `json:"t" validate:"required,min=2"` /// id of the previously generated distributed key, in hex KeyID string `json:"key_id" validate:"required"` /// Message to be signed /// Structure format: HashMap<TransactionId, Transaction> Message string `json:"message" validate:"required"` /// Chosen signature algorithm for signing SignAlg types.SignatureAlgorithm `json:"signAlg" validate:"required"` }
type WpRequest
type WpRequest struct { Payload WpRequestPayload `json:"payload"` // UserSigs is 'None' in chal-resp and available in non-chal-resp mechanism. UserSigs *auth.UserSignatures `json:"userSigs,omitempty"` // Use pointer for Option<T> and omitempty }
type WpRequestPayload
type WpRequestPayload struct { Keygen *[]KeygenOpts `json:"-"` // untagged, so no direct JSON field name Sign *SignOpts `json:"-"` AddEphKey *AddEphKeyRequest `json:"-"` RevokeEphKey *RevokeEphKeyRequest `json:"-"` QuorumChange *QuorumChangeRequest `json:"-"` }