This repository was archived by the owner on Mar 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,8 @@ export class SubdomainServer {
613
613
const signerAddress = subdomainOp.owner
614
614
615
615
const newSubdomainOp = {
616
- ...subdomainOp, owner: newOwner,
616
+ ...subdomainOp,
617
+ owner: newOwner,
617
618
sequenceNumber: 1, // seqn is unknown to transfer initiator
618
619
signature: undefined // sig should NOT be included in hash
619
620
}
@@ -623,15 +624,15 @@ export class SubdomainServer {
623
624
624
625
try {
625
626
const publicKey = {
626
- data: publicKeyFromSignature(hash, { data: signature })
627
+ data: Buffer.from( publicKeyFromSignature(hash, { data: signature }), 'hex' )
627
628
}
628
629
const addressVersion = process.env.BSK_SUBDOMAIN_TESTNET
629
630
? AddressVersion.TestnetSingleSig
630
631
: AddressVersion.MainnetSingleSig
631
632
const address = publicKeyToAddress(addressVersion, publicKey)
632
633
633
634
if (signerAddress !== address) {
634
- return ` signature error : '${newOwner } ' has invalid signature `
635
+ return ` signature error : current owner '${signerAddress } ' does not match initiator '${address}' `
635
636
}
636
637
} catch (error) {
637
638
return ` signature error: $ { newOwner } $ { error . message } `
You can’t perform that action at this time.
0 commit comments