dimxy / bitgo-komodo-cc-lib Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bitgo/bitgo-utxo-lib
UTXO coins functions implemented in pure JavaScript, with komodo cryptoconditions support
License: MIT License
This project forked from bitgo/bitgo-utxo-lib
UTXO coins functions implemented in pure JavaScript, with komodo cryptoconditions support
License: MIT License
add functions to extract addresses from tx outputs, cc, non-cc, p2sh, (like they exist in the daemon)
add IsMine function to check if output is mine
Make a better satoshi to coin conversion for BN instead of multiply by 10e8
add a function like IsTokenVout in js
Saw this in normaltx.js after await sleep(10k):
2022-07-05T10:00:24.939Z net:peer peer disconnecting... x://177.54.147.50:29404
2022-07-05T10:00:24.939Z net:peergroup:error peer is to disconnect, reason=Error: PeerGroup closing, left peer.length = 0
2022-07-05T10:00:24.939Z net:peer peer disconnecting... x://135.148.54.137:29404
2022-07-05T10:00:24.939Z net:peergroup finished, peers.length: 0
test finished
2022-07-05T10:00:24.941Z net:peergroup discovery connection error: Error: read EADDRNOTAVAIL
2022-07-05T10:00:24.941Z net:peergroup waiting for 10000 ms before connection retry
Waiting for the debugger to disconnect...
node:events:368
throw er; // Unhandled 'error' event
^
Error: read EADDRNOTAVAIL
at TCP.onStreamRead (node:internal/stream_base_commons:220:20)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
Emitted 'error' event on Peer instance at:
at Peer._error (/Users/dimxy/repo/bitgo-komodo-cc-lib/net/peer.js:171:10)
at Socket.emit (node:events:402:35)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -49,
code: 'EADDRNOTAVAIL',
syscall: 'read'
}
Looks like discovery connection did not stop properly.
Connections were initially to non-local seeds
add samples to create CLTV with P2SH transactions
this function seems to incorrectly checks txfee and return absurd fee
https://github.com/TokelPlatform/nspv-js/blob/development/src/transaction_builder.js#L777L779
example of a tx http://explorer.komodoplatform.com:20000/tx/f1dd1869d7eba675d562ae10de60ee2874e3c220ef071944996db39092b72099/TKLTEST2
add code to validate txproof and notarization proofs:
allow to check if a transaction is valid both with txproof object and notarisations proofs (if notarizations enabled in the chain)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.