0.1.30 • Published 1 year ago

iota-walletgen-l4rot v0.1.30

Weekly downloads
-
License
-
Repository
-
Last release
1 year 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

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.16

1 year ago

0.1.8

1 year ago

0.1.17

1 year ago

0.1.7

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago