Hierarchy

Constructors

Properties

cluster: string
keypair?: DesigKeypair
privkey: Uint8Array

Accessors

Methods

  • Approve a proposal. You will need to submit the commitment in the 1st round to be able to join the 2nd round of signing.

    Returns

    Proposal data

    Parameters

    • proposalId: string

      Proposal id

    Returns Promise<ApprovalEntity & {
        proposal: ProposalEntity;
        signer: Omit<SignerEntity, "encryptedShare">;
    }>

  • Finalize the partial signatures. The function will combine the partial signatures and construct the valid signature.

    Returns

    Master signature

    Parameters

    • proposalId: string

      Proposal id

    Returns Promise<{
        recv?: number;
        sig: Uint8Array;
    }>

  • Submit a proposal to desig cluster

    Returns

    Proposal data

    Parameters

    • __namedParameters: {
          chainId: string;
          msg: Uint8Array;
          raw: Uint8Array;
          ttl?: number;
      }
      • chainId: string
      • msg: Uint8Array
      • raw: Uint8Array
      • Optional ttl?: number

    Returns Promise<ProposalEntity & {
        approvals: (ApprovalEntity & {
            signer: Omit<SignerEntity, "encryptedShare">;
        })[];
        multisig: MultisigEntity;
    }>

  • Event streaming

    Parameters

    • event: EventStreaming

      Event

    • param: string

      owner / signerId

    • callback: ((id: string, er?: string) => void)
        • (id: string, er?: string): void
        • Parameters

          • id: string
          • Optional er: string

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Verify a master signature

    Returns

    true/false

    Parameters

    • id: string

      Proposal id

    • signature: Uint8Array

      Master signature

    Returns Promise<boolean>

  • Watch new approval

    Returns

    Close function

    Parameters

    • callback: ((approvalId: string, er?: string) => void)
        • (approvalId: string, er?: string): void
        • Parameters

          • approvalId: string
          • Optional er: string

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Derive the approval id by the proposal id and the signer id

    Returns

    Approval id

    Parameters

    • proposalId: string

      Proposal id

    • signerId: string

      Signer id

    Returns string

  • Derive the proposal id by the multisig id and its content

    Returns

    Proposal id

    Parameters

    • multisigId: string

      Multisig id

    • msg: Uint8Array

      Proposal's content (Or message)

    Returns string

Generated using TypeDoc