Last active
September 2, 2021 12:01
-
-
Save mutatrum/9ecf578403c173148ac627ceaf256d5a to your computer and use it in GitHub Desktop.
Convert ChannelLink notation to hashed notation
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
#!/usr/bin/env node | |
var input = process.argv[2].split(':') | |
var result = (BigInt(input[0]) << 40n) + (BigInt(input[1]) << 16n) + (BigInt(input[2])) | |
console.log(result.toString()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment