Skip to content

Instantly share code, notes, and snippets.

View fleischr's full-sized avatar
💭
building a new generation of ESG SaaS

Ryan Fleischmann fleischr

💭
building a new generation of ESG SaaS
View GitHub Profile
@cbuckowitz
cbuckowitz / CreateCombinedSHA1.abap
Last active May 18, 2022 02:34
Create hash from multiple values #SAP #ABAP
DATA lo_digest TYPE Ref To cl_abap_message_digest.
DATA lv_timestamp TYPE timestampl.
DATA lv_int TYPE int4.
DATA lv_text TYPE string.
DATA lv_hash_string TYPE string.
DATA lv_hash_base64 TYPE string.
const bitcoin = require('bitcoinjs-lib')
const psbt = new bitcoin.Psbt({ network: bitcoin.networks.testnet })
// example transaction
const unspentOutput = {
"txid": "11e5b7005a76c8a53f9a0036bc1a2745ebd73ad40017b3169894aa2c19e789d7",
"vout": 1,
"address": "2NCxBSjMaVeBFyxmGcD2X428v6k5n3pCQKN",
"label": "payment",
"redeemScript": "001495a994a417c45f97c87d03efb21997452d4c782f",