return new Promise(async (resolve, reject) => {
try {
if (typeof input === 'string' && /^[A-F0-9]{64}$/i.test(input)) {
- const signature = nano25519.sign(hex.toBytes(this.hash), hex.toBytes(input))
+ const prv = hex.toBytes(input)
+ const pub = nano25519.derive(prv)
+ const signature = nano25519.sign(hex.toBytes(this.hash), new Uint8Array([...prv, ...pub]))
this.signature = bytes.toHex(signature)
} else if (input instanceof Wallet && typeof index === 'number'
&& (frontier === undefined || frontier instanceof (this.constructor as typeof Block))