sCrypt-Inc / scrypt-ord

sCrypt 1sat ordinal library
https://docs.scrypt.io/tokens/
21 stars 5 forks source link

use P2PKH as the smart contract #11

Closed xhliu closed 1 year ago

xhliu commented 1 year ago

similar to hash puzzle in https://github.com/sCrypt-Inc/scrypt-ord/blob/master/tests/specs/ordP2PKH.spec.ts

How about breaking OrdP2PKH into two?

common code can be in a library.

xhliu commented 1 year ago

https://github.com/sCrypt-Inc/scrypt-ord/blob/dba56bce7fa3d0a00657beab2ad14bca502dd2e0/tests/specs/ordP2PKH.spec.ts#L21 How to deploy or mint FT to a p2pkh, as other contracts? This only transfers to. @zhfnjust https://github.com/sCrypt-Inc/scrypt-ord/blob/dba56bce7fa3d0a00657beab2ad14bca502dd2e0/tests/specs/hashPuzzleFT.spec.ts#L28-L29