Closed sirdeggen closed 3 months ago
I don't think any method exists to return the public key in DER encoding as a number array as you'd expect to push to a P2PK script for example.
import { PrivateKey } from '@bsv/sdk' const k = PrivateKey.fromRandom() k.toPublicKey().toDER()
Returns a string.
Return DER format number[]
Bug Description
I don't think any method exists to return the public key in DER encoding as a number array as you'd expect to push to a P2PK script for example.
Steps to Reproduce
Returns a string.
Expected Behavior
Return DER format number[]