3.16.0 • Published 6 months ago

@slide-computer/signer v3.16.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@slide-computer/signer

JavaScript and TypeScript library to interact with signers on the Internet Computer.


Installation

Using Signer:

npm i --save @slide-computer/signer

In the browser:

import { Signer } from "@slide-computer/signer";

To get started with the signer, run

// Create transport with e.g. "@slide-computer/signer-web"
const signer = new Signer({transport});

Make sure to connect before using signer if the transport requires a connection

if (transport.connection && !transport.connection.connected) {
    await transport.connection.connect();
}

The signer can for example get accounts with

const accounts = await signer.accounts();

Optionally, the permission can be requested beforehand to get accounts

const permissions = await signer.requestPermissions([createAccountsPermissionScope()]);

Making canister calls

The @slide-computer/signer-agent package offers SignerAgent as drop in replacement of HttpAgent.

Besides making canister calls through signers that need to be approved by users, calls can also be made after requesting a delegation from the signer with the delegation() method. This delegation can then be used to create a DelegationIdentity which in turn can be used with the HttpAgent.

List of available transports

Efforts are made to standardize the transports, for example ICRC-29 and ICRC-94. For wallets that do not implement a standardized transport method, additional polyfill packages are available.

Standardized packagesSupported signers
@slide-computer/signer-webNFID, Oisy, Slide
@slide-computer/signer-extensionPrimeVault
Polyfill packagesSupported signers
@slide-computer/signer-transport-plugPlug
@slide-computer/signer-transport-stoicStoic
@slide-computer/signer-transport-auth-clientInternet Identity
3.15.0

6 months ago

3.9.0

9 months ago

3.7.2

9 months ago

3.10.1

9 months ago

3.8.0

9 months ago

3.10.0

9 months ago

3.10.3

9 months ago

3.12.0

7 months ago

3.10.2

9 months ago

3.14.0

7 months ago

3.16.0

6 months ago

3.8.1

9 months ago

3.11.0

9 months ago

3.7.1

9 months ago

3.7.0

10 months ago

3.13.0

7 months ago

1.9.0

1 year ago

2.2.0

1 year ago

2.4.0

1 year ago

2.6.1

1 year ago

2.6.0

1 year ago

2.5.4

1 year ago

2.6.2

1 year ago

3.6.4

12 months ago

3.6.3

12 months ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

3.4.0

1 year ago

3.3.0

1 year ago

3.2.0

1 year ago

3.1.0

1 year ago

3.6.2

12 months ago

3.6.1

1 year ago

3.6.0

1 year ago

3.5.0

1 year ago

3.0.0

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago