An open API service indexing awesome lists of open source software.

https://github.com/leapwallet/wallet-sdk-test


https://github.com/leapwallet/wallet-sdk-test

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# wallet-sdk-test

## Example usage
Add the wallet sdk script in your html file
```html

```

```js
// generate a 12 word mnemonic seed
const mnemonic = window.getMnemonic()
// generate the signing key from mnemonic
const signingKey = window.getHDKey(mnemonic)

const message = "Hello world!"

const hash = window.messageHash("message")
// sign a message using the signing key
const signature = window.sign(signingKey, hash)

```