You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
This issue documents my steps for porting over from blockstack.js. I forked at commit 286df82 and will backport coming changes from upstream blockstack.js.
I began with copying over the src/ directory over to here and then gradually fixing the problems tsccomplains about.
I try to document here everything that might be either relevant for fixing it upstream or needs some clarification. For all actions I took please review the commits starting from 11e1c78 (these may contain also minor things that might be relevant for upstream).
Steps
yarn build (with strict=false)
yarn build (with strict=true) (except the points below)
Note: I'll update this issue consistently with links to other ones etc, while porting over. The solutions behind the issue numbers are most likely opinionated (but need them to go forward with the port).
Also please don't be frightened by all these imperatives, I just write all my git related messages as imperative :D
Edit: Just decided to make a new list of flaws for things that don't need a discussion (in my opinion).
Edit: These may contain false-positives because of style variations or dependency upgrades.
This issue documents my steps for porting over from
blockstack.js
. I forked at commit286df82
and will backport coming changes from upstreamblockstack.js
.I began with copying over the
src/
directory over to here and then gradually fixing the problemstsc
complains about.I try to document here everything that might be either relevant for fixing it upstream or needs some clarification. For all actions I took please review the commits starting from 11e1c78 (these may contain also minor things that might be relevant for upstream).
Steps
yarn build
(withstrict=false
)yarn build
(withstrict=true
) (except the points below)yarn lint
yarn test
Issues
custom-protocol-detection-blockstack
: Types for custom-protocol-detection-blockstack #5, possible solution in my forkjsontokens
: possible solution in Add TypeScript declarations stacks-network/jsontokens-js#20zone-file
: possible solution in Add TypeScript declarations stacks-network/zone-file-js#4bn.js
: Add TypeScript declarations indutny/bn.js#180getGracePeriod()
needs a parameter or not: Clarify whethergetGracePeriod()
needs a parameter or not #7, possible solution in 329c6a6verifiedAccounts()
should come from?: Where does the parameter forverifiedAccounts()
should come from? #8decryptPrivateKey()
: Clarify return type ofdecryptPrivateKey()
#9encryptECIES()
take a Buffer as input? CanencryptECIES()
take a Buffer as input? #10, possible solution in ae6bc60form-data
dependency needed?: Is theform-data
dependency needed? #13@types/bitcoinjs-lib
:ECPair
should exposecompressed
: @types/bitcoinjs-lib:ECPair
should exposecompressed
DefinitelyTyped/DefinitelyTyped#24453@types/bigi
: Wrong return type forvalueOf
: @types/bigi: Wrong return type forvalueOf
DefinitelyTyped/DefinitelyTyped#24346Flaws
AuthMessage
should be exported: 1a3810dErrorType
should be exported and wrong parameter name: 3116488UTXO
should be exported: 35dd81dUTXO
type: 3c85b56Things needed for a strict build
elliptic
ripemd160
Note: I'll update this issue consistently with links to other ones etc, while porting over. The solutions behind the issue numbers are most likely opinionated (but need them to go forward with the port).
Also please don't be frightened by all these imperatives, I just write all my git related messages as imperative :D
Edit: Just decided to make a new list of flaws for things that don't need a discussion (in my opinion).
Edit: These may contain false-positives because of style variations or dependency upgrades.
cc @kantai @larrysalibra
The text was updated successfully, but these errors were encountered: