0.1.30 • Published 2 years ago

iota-walletgen-l4rot v0.1.30

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

IOTA WEB EXTENSION PoC -> WASM Tests

Prereq:

  • install rust
  • install wasm-pack with: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Building

  • compile the rust code to the wasm web target with: wasm-pack build --target web

Usage

  • The building process should have created a pkg folder with a .wasm file and some js/ts wrappers
  • To start using your wasm functions in vanilla JS you need to first initialize the function in a module script:
<script type="module">
    // init and export wasm functions
    import init, {create_mnemonic} from './pkg/walletgen.js';
    await init();
    window.create_mnemonic = create_mnemonic;
</script>

In this example init we imported the create_mnemonic function from walletgen.js and exported it for further use with window.create_mnemonic

npm i @iota/wallet

0.1.30

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago