@taquito/signer
TypeScript icon, indicating that this package has built-in type declarations

20.1.1 • Public • Published

Taquito Signer package

Documentation can be found here TypeDoc style documentation is available on-line here

@taquito/signer is an npm package that provides developers with signing functionality for Taquito.

General Information

The Inmemory signer is a local signer implementation that allows you to directly use a private key in your browser or your nodejs app. When the InMemorySigner is configured, all Taquito functionalities that need signing support can be used. The operation will be signed automatically using the signer (no prompt).

This signer implementation is for development workflows.

Storing private keys in memory is suitable for development workflows but risky for production use-cases! Use the InMemorySigner appropriately given your risk profile.

Install

npm i --save @taquito/taquito
npm i --save @taquito/signer

Usage

Loading an unencrypted private key

import { InMemorySigner } from '@taquito/signer';
import { TezosToolkit } from '@taquito/taquito';

const Tezos = new TezosToolkit('https://YOUR_PREFERRED_RPC_URL');

Tezos.setProvider({ signer: await InMemorySigner.fromSecretKey('edsk...') });

Loading an encrypted private key with a passphrase

If your private key is encrypted, you can specify a passphrase to decrypt it. Doing so will automatically decrypt the key and allow you to use the signer to sign transactions.

import { InMemorySigner } from '@taquito/signer';
import { TezosToolkit } from '@taquito/taquito';

const Tezos = new TezosToolkit('https://YOUR_PREFERRED_RPC_URL');
Tezos.setProvider({
  signer: await InMemorySigner.fromSecretKey('your_private_key', 'your_passphrase'),
});

The following link can be used to fund an address on the different testnets: https://teztnets.com/.

Additional info

See the top-level https://github.com/ecadlabs/taquito file for details on reporting issues, contributing and versioning.

Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
20.2.0-beta.0204next
20.1.1159latest

Version History

VersionDownloads (Last 7 Days)Published
20.1.1159
20.2.0-beta.0204
20.1.03,264
20.1.0-RC.04
21.0.0-beta.016
20.0.2-beta.20
20.0.2-beta.10
20.0.2-beta.00
20.0.1189
20.0.056
20.0.0-RC.10
20.0.0-RC.00
19.2.156
20.0.0-beta.10
19.2.1-beta.20
19.2.1-beta.10
20.0.0-beta.00
19.2.1-beta.00
19.2.02
19.2.0-RC.00
19.1.00
19.1.0-RC.20
19.1.0-RC.10
19.1.0-beta-RC.00
19.0.28
19.0.12
19.0.02
19.0.0-beta-RC.02
17.5.2331
17.5.12
17.5.02
17.5.0-beta-RC.12
17.5.0-beta-RC.02
17.4.0122
17.4.0-beta-RC.01
17.3.2497
18.0.0-RC.034
17.3.176
17.3.1-beta-RC.02
17.3.0206
17.3.0-beta.11
17.2.0223
17.2.0-beta-RC.01
17.1.11
17.1.074
17.1.0-beta-RC.11
17.1.0-beta-RC.01
17.0.093
17.0.0-beta-RC.01
16.2.0106
16.2.0-beta-RC.01
16.1.2221
16.1.2-beta-RC.01
16.1.11
16.1.01
16.0.11
16.0.01
16.0.0-beta-RC.01
15.1.0574
15.1.0-beta-RC.11
15.1.0-beta-RC.01
15.0.11
15.0.091
15.0.0-beta-RC.01
14.2.0301
14.2.0-beta-RC.08
14.1.0560
14.1.0-beta-RC.03
14.0.0418
14.0.0-beta-RC.01
13.0.11,828
13.0.063
13.0.0-beta-RC.02
12.1.1660
12.1.0492
12.1.0-beta-RC.01
12.0.3197
12.0.21
12.0.137
12.0.019
12.0.0-beta-RC.01
11.2.01,331
11.2.0-beta-RC.03
11.1.0-stablelib.03
11.1.0527
11.1.0-beta-RC.03
11.0.210
11.0.1713
11.0.04
11.0.0-beta-RC.12
11.0.0-beta-RC.02
10.2.11,621
10.2.022
10.2.0-beta-RC.01
10.1.347
10.1.0-methodsObject.24
10.1.240
10.1.14
10.1.0-methodsObject.12
10.1.0-methodsObject.02
10.1.030
10.1.0-beta-RC.02
10.0.03
10.0.0-beta-RC.02
9.2.0-stablelib.02
9.2.0714
9.2.0-beta-RC.22
9.2.0-beta-RC.11
9.2.0-beta-RC.03
9.1.1-beacon.32
9.1.1-beacon.23
9.1.116
9.1.1-beta-RC.01
9.1.04
9.1.1-beacon.12
9.1.0-beta-RC.11
9.1.0-beta-RC.01
9.0.193
9.0.04
9.0.0-beta-RC.11
9.0.0-beta-RC.01
8.1.178
8.1.04
8.1.0-beta-RC.02
8.0.6-beta.015
8.0.6-beta-RC.01
8.0.5-preview.02
8.0.5-pack.12
8.0.5-pack.02
8.0.4-beta.01
8.0.4-beta-RC.06
0.0.0-0fdad917--mk-wallet-empty-delegated-implicit-account3
8.0.3-beta.05
8.0.2-beta.03
8.0.1-beta.111
8.0.1-RC.31
8.0.1-edo2net.02
8.0.1-RC.22
8.0.1-RC.11
8.0.0-beta.76
8.0.0-beta.61
8.0.0-beta.51
8.0.0-beta.42
8.0.0-beta.31
8.0.0-beta.21
8.0.0-beta.12
7.2.0-beta.21
8.0.0-alpha.01
7.1.1-preview.01
7.2.0-alpha.21
7.2.0-alpha.11
7.2.0-alpha.02
7.1.0-beta.02
7.1.0-preview.101
7.1.0-preview.93
7.1.0-preview.82
7.1.0-preview.71
7.1.0-preview.61
7.1.0-preview.51
7.1.0-preview.43
7.1.0-preview.32
7.1.0-preview.22
7.1.0-preview.11
7.0.1-beta.0482
7.1.0-preview-lambdaview.011
7.0.0-beta.01
7.0.0-beta-RC.02
7.0.0-beta.pre.01
6.4.0-ledger.06
6.3.5-beta.022,947
6.3.4-beta.04
6.3.3-beta.07
6.3.2-beta.012
6.3.1-beta.068
6.3.0-beta.52
6.3.0-wallet.47
6.3.0-wallet.32
6.3.0-wallet.22
6.2.0-beta.115
6.3.0-wallet.13
6.2.0-beta.03
6.1.1-beta.017
6.1.0-beta.05
6.0.3-beta.1353
6.0.3-beta.02
6.0.2-beta.02
6.0.1-beta.01
6.0.0-beta.01
5.3.1-beta.13
5.3.1-beta.01
5.3.0-beta.03
5.2.0-beta.14
5.2.0-beta.01
5.1.0-beta.14
5.0.1-beta.23
5.0.1-beta.11
5.0.1-beta.01
5.0.0-alpha.12
5.0.0-alpha.01
4.1.0-beta.62
4.1.0-beta.52
4.1.0-beta.41
4.1.0-beta.31

Package Sidebar

Install

npm i @taquito/signer

Weekly Downloads

17,142

Version

20.1.1

License

Apache-2.0

Unpacked Size

130 kB

Total Files

30

Last publish

Collaborators

  • jevonearth
  • roxaneletourneau
  • gimbrailo
  • hui-an.yang
  • dsawali
  • alirezahaghshenas