Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _votesValidated: boolean = false
    isInstance: (obj: any, strict?: boolean) => obj is VoteStaple = ...
    VoteBlockHash: typeof VoteBlockHash = VoteBlockHash

    Accessors

    • get blocks(): Block[]

      Returns Block[]

    • get blocksHash(): VoteBlockHash

      Get the hash of the blockhashes in the staple -- this is a stable ID for the staple regardless of which votes are included in the staple.

      Returns VoteBlockHash

    • get hash(): VoteStapleHash

      Hash of the Vote Staple -- this is the hash of the data in the canonical form of the staple, which may be different from the hash of the data passed into the this object.

      Returns VoteStapleHash

    • get votes(): Vote[]

      Returns Vote[]

    Methods

    • Get the serialized version

      Parameters

      • Optionaluncompressed: boolean

      Returns ArrayBuffer

    • Parameters

      Returns {
          $binary?: string;
          blocks: (
              {
                  $hash: BlockHashString;
                  $opening: boolean;
                  account: | TokenPublicKeyString
                  | NetworkPublicKeyString
                  | StoragePublicKeyString
                  | MultisigPublicKeyString
                  | Secp256K1PublicKeyString
                  | Secp256R1PublicKeyString
                  | ED25519PublicKeyString;
                  date: string;
                  network: string;
                  operations: (
                      | {
                          amount: string;
                          to: string;
                          token: TokenPublicKeyString;
                          type: SEND;
                      } & { external?: string }
                      | { to: string; type: SET_REP } & {}
                      | {
                          description: string;
                          metadata: string;
                          name: string;
                          type: SET_INFO;
                      } & {
                          defaultPermission?: | false
                          | [string, number[]]
                          | [string, string]
                          | [number[] | BaseFlagNames, number[]];
                      }
                      | {
                          method: AdjustMethod;
                          permissions: | null
                          | false
                          | [string, number[]]
                          | [string, string]
                          | [number[] | BaseFlagNames, number[]];
                          principal: string;
                          type: MODIFY_PERMISSIONS;
                      } & { target?: string }
                      | { identifier: string; type: CREATE_IDENTIFIER } & {
                          createArguments?:
                              | {
                                  quorum: string;
                                  signers: (
                                      | MultisigPublicKeyString
                                      | Secp256K1PublicKeyString
                                      | Secp256R1PublicKeyString
                                      | ED25519PublicKeyString
                                  )[];
                                  type: MULTISIG;
                              } & {}
                              | {
                                  quorum: string;
                                  signers: (
                                      | MultisigPublicKeyString
                                      | Secp256K1PublicKeyString
                                      | Secp256R1PublicKeyString
                                      | ED25519PublicKeyString
                                  )[];
                                  type: MULTISIG;
                              } & {};
                      }
                      | { amount: string; method: ADD
                      | SUBTRACT; type: TOKEN_ADMIN_SUPPLY } & {}
                      | {
                          amount: string;
                          method: AdjustMethod;
                          token: TokenPublicKeyString;
                          type: TOKEN_ADMIN_MODIFY_BALANCE;
                      } & {}
                      | {
                          amount: string;
                          from: string;
                          token: TokenPublicKeyString;
                          type: RECEIVE;
                      } & { exact?: boolean; forward?: string }
                      | {
                          certificateOrHash:
                              | string
                              | CertificateHashString
                              | {
                                  $hash: CertificateHashString;
                                  issuer: string;
                                  issuerDN: { name: string; value: string }[];
                                  notAfter: string;
                                  notBefore: string;
                                  serial: string;
                                  subject: string;
                                  subjectDN: { name: string; value: string }[];
                                  subjectPublicKey:
                                      | Secp256K1PublicKeyString
                                      | Secp256R1PublicKeyString
                                      | ED25519PublicKeyString;
                              } & {
                                  $binary?: string;
                                  $chain?: undefined;
                                  baseExtensions?: {} & {
                                      authorityKeyIdentifier?: {
                                          contains: string;
                                          type: "context";
                                          value: 0;
                                      } & {};
                                      basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                                      keyUsage?: KeyUsage;
                                      subjectKeyIdentifier?: string;
                                  };
                              }
                              | {
                                  $hash: CertificateHashString;
                                  issuer: string;
                                  issuerDN: { name: string; value: string }[];
                                  notAfter: string;
                                  notBefore: string;
                                  serial: string;
                                  subject: string;
                                  subjectDN: { name: string; value: string }[];
                                  subjectPublicKey:
                                      | Secp256K1PublicKeyString
                                      | Secp256R1PublicKeyString
                                      | ED25519PublicKeyString;
                              } & {
                                  $binary?: string;
                                  $chain?: undefined;
                                  baseExtensions?: {} & {
                                      authorityKeyIdentifier?: {
                                          contains: string;
                                          type: "context";
                                          value: 0;
                                      } & {};
                                      basicConstraints?: [ca: boolean, pathLenConstraint?: null | string];
                                      keyUsage?: KeyUsage;
                                      subjectKeyIdentifier?: string;
                                  };
                              };
                          method: ADD
                          | SUBTRACT;
                          type: MANAGE_CERTIFICATE;
                      } & {
                          intermediateCertificates?: | null
                          | string
                          | { certificates: string[] };
                      }
                  )[];
                  previous: BlockHashString;
                  purpose: BlockPurpose;
                  signer: | Secp256K1PublicKeyString
                  | Secp256R1PublicKeyString
                  | ED25519PublicKeyString
                  | [
                      MultisigPublicKeyString,
                      (
                          Secp256K1PublicKeyString | Secp256R1PublicKeyString | ED25519PublicKeyString | [MultisigPublicKeyString, (Secp256K1PublicKeyString | ... 2 more ... | [...])[]]
                      )[],
                  ];
                  version: 1
                  | 2;
              } & {
                  $binary?: string;
                  idempotent?: string;
                  signature?: string;
                  signatures?: string[];
                  subnet?: string;
              }
          )[];
          votes: (
              {
                  $id: string;
                  $permanent: boolean;
                  $trusted: boolean;
                  $uid: string;
                  blocks: BlockHashString[];
                  issuer: | Secp256K1PublicKeyString
                  | Secp256R1PublicKeyString
                  | ED25519PublicKeyString;
                  serial: string;
                  signature: string;
                  validityFrom: string;
                  validityTo: string;
              } & {
                  $binary?: string;
                  fee?: | { amount: string } & { payTo?: string; token?: string }
                  | ({ amount: string } & { payTo?: string; token?: string })[];
                  quote?: boolean;
              }
          )[];
      }