sss-module
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

SSS-Module

This is SSS Extension Utility module.

Installation

Node.js

npm install sss-module

Usage

import { getActiveAddress } from 'sss-module'

const addr = getActiveAddress()

console.log({ addr })

Feature

  • getActiveName(): string
  • getActiveAddress(): string
  • getActiveNetworkType(): string
  • getActivePublicKey(): string
  • setTransaction(transaction: Transaction): void
  • setTransactionByPayload(serializedTx: string): void
  • setMessage(message: string, recipientPublicKey: string): void
  • requestSign(): Promise<SignedTransaction>
  • requestSignCosignatureTransaction(): Promise<CosignatureSignedTransaction>
  • requestSignWithCosignatories(cosignatories: Account[]): Promise<SignedTransaction>
  • requestSignEncription(): Promise<EncryptedMessage>
  • getActiveAccountToken(verifierPublicKey: string | PublicAccount, customPayload?: Object, encryptedPayload?: string): Promise<string>
  • isAllowedSSS(): boolean
  • requestSSS(): boolean

Package Sidebar

Install

npm i sss-module

Weekly Downloads

2

Version

1.0.4

License

Apache-2.0

Unpacked Size

20.3 kB

Total Files

6

Last publish

Collaborators

  • safely-sign-symbol