Skip to content

Instantly share code, notes, and snippets.

View chm-diederichs's full-sized avatar

Christophe Diederichs chm-diederichs

View GitHub Profile
Sha512.prototype.onetime = function (input, enc) {
assert(this.finalized === false, 'Hash instance finalized')
if (head % 8 !== 0) head += 8 - head % 8
assert(head % 8 === 0, 'input should be aligned for int64')
let [ inputBuf, length ] = formatInput(input, enc)
assert(inputBuf instanceof Uint8Array, 'input must be Uint8Array or Buffer')
if (head + input.length > wasm.memory.length) wasm.realloc(head + input.length)
const script = require('./script')
const { Script, Address } = require('bcoin')
const stringKeys = [
'020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73',
'03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1',
'029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6',
'0321602d78046d63256b1730b119b1aca3428039f18fdb73ccf45ad3e148dd9b17'
]

Keybase proof

I hereby claim:

  • I am chm-diederichs on github.
  • I am chmdiederichs (https://keybase.io/chmdiederichs) on keybase.
  • I have a public key ASDdjKW6TigPZD2F_rwKj9LoPSRhiSA21cRIw1a-eZoGsgo

To claim this, I am signing this object: