linden's notebooks

  • Stacks Key Derivation - /linden/stacks-key-derivation
    Last edited 2 years ago
    // set up const bip39 = require("@scure/bip39"); const bip32 = require("@scure/bip32"); const sdk = require("micro-stacks/wallet-sdk"); const crypto = require("micro-stacks/crypto"); const common = require("micro-stacks/common"); const sha = require("micro-stacks/crypto-sha") let seed = new Uint8Array([250, 11, 150, 241, 220, 116, 1, 18, 185, 11, 101, 226, 13, 240, 219, 48, 159, 224, 156, 199, 50, 69, 18, 130, 164, 205, 100, 233, 66, 149, 206, 135]);
  • Signing Transaction - /linden/signing-transaction
    Last edited 2 years ago
    const stacks = require("@stacks/transactions") const example = "0000000001040041cead6d5e61da18235d0acd15506f5f02942175000000000000000a000000000000006400002fe3ddf92e02a5d85bf5596b9b3ffc6180f366c78bf4ae5357bca44b03704dcb3156128c3f70f53a01b208e96b7ca74e8c7066b8ead6183f29312a5f70a3e1fe03010000000000051666356631643763343832633665316638333330623438303563356330336438343039643332343532000000000000006468656c6c6f0000000000000000000000000000000000000000000000000000000000"