* of three derived classes: SendBlock, ReceiveBlock, ChangeBlock.
*/
abstract class Block {
- static #pool: Pool
+ static #poolNanoNaCl: Pool
account: Account
type: string = 'state'
abstract subtype: 'send' | 'receive' | 'change'
} else {
throw new TypeError('Invalid account')
}
- Block.#pool ??= new Pool(NanoNaClWorker)
+ Block.#poolNanoNaCl ??= new Pool(NanoNaClWorker)
}
/**
}
const account = await Account.fromPrivateKey(key)
try {
- const result = (await Block.#pool.assign({
+ const result = (await Block.#poolNanoNaCl.assign({
method: 'detached',
msg: hex.toArray(this.hash),
privateKey: hex.toArray(`${account.privateKey}`)