This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BITBOX } from "bitbox-sdk"; | |
import { SigHash, Spedn, TxBuilder } from "spedn"; | |
async function main() { | |
// BITBOX boilerplace | |
const bitbox = new BITBOX(); | |
const mnemonic = "draw parade crater busy book swim soldier tragic exit feel top civil"; | |
const wallet = bitbox.HDNode.fromSeed(bitbox.Mnemonic.toSeed(mnemonic)); | |
const alice = bitbox.HDNode.derivePath(wallet, "m/44'/145'/0'/0/0"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Just a sample Haskell program with some functions. | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Data.JSString | |
main :: IO JSString | |
main = return "elo" |