Commit graph

15 commits

Author SHA1 Message Date
junderw
45187a32d0
Add taggedHash, sigHash v1
Co-authored-by: Brandon Black <brandonblack@bitgo.com>
Co-authored-by: Otto Allmendinger <otto@bitgo.com>
Co-authored-by: Tyler Levine <tyler@bitgo.com>
Co-authored-by: Daniel McNally <danielmcnally@bitgo.com>
2021-11-12 08:33:18 +09:00
junderw
e5a77304fa
Refactor: Remove all require statements, remove ECPair, remove tiny-secp256k1 dep 2021-10-20 19:18:01 +09:00
Otto Allmendinger
6b71eb0c65
fix(transaction): use writeInt32 to write version
We are reading `version` as `int32` so we should write it as that as
well.
2021-08-17 14:57:28 +02:00
junderw
06674b19fe
Add BufferReader to Transaction and fix tests 2020-01-15 10:50:33 +09:00
junderw
91e6c8abc3
Move to bufferutils and add BufferReader 2020-01-15 10:44:29 +09:00
Otto Allmendinger
cec5fb5357
Extract BufferWriter class
Move various write methods to a class `BufferWriter`.

This allows increased code reuse for libraries that want to implement
different serialization formats.

Also de-duplicates some code paths and increases test coverage.

Original concept by idea by https://github.com/argjv:
https://github.com/BitGo/bitgo-utxo-lib/blob/master/src/bufferWriter.js
2020-01-14 15:03:14 +01:00
junderw
10fcf3d9e1
Remove private __byteLength from Transaction 2019-12-09 10:37:55 +09:00
junderw
22d5831b9b
Remove Output casts from Transaction class 2019-11-21 18:01:04 +09:00
junderw
2aa3926616
Fix Transaction Output type
Co-authored-by: longhoang.wkm <longhoang@wakumo.vn>
2019-11-21 16:35:40 +09:00
d-yokoi
0cdd7b1e2c
ci: add a tslint rule to require type definitions 2019-03-22 00:15:37 +09:00
junderw
74375bfedf
Fix class constructors 2019-03-20 15:25:48 +09:00
junderw
e6ea0389a2
Fix lint for transaction.ts 2019-03-07 13:40:23 +09:00
d-yokoi
03632f1507
style: apply prettier 2019-03-04 22:10:40 +09:00
junderw
1732bafbc1
Update TypeScript to use ! instead of casting 2019-01-15 17:47:30 +09:00
junderw
bc28949056
Commit js, ts, and definitions in separate folders 2019-01-04 18:33:02 +09:00
Renamed from src/transaction.ts (Browse further)