import { ArrayHelper , Blake2b } from "@iota/crypto.js" ; import type { IAddress } from "../models/IAddress" ; /**
 * Class to help with Ed25519 Signature scheme.
 */ export class Ed25519Address implements IAddress { internal public static ADDRESS_LENGTH : number = Blake2b . SIZE_256 ; /**
     * The public key for the address.
     */ private readonly _publicKey : Uint8Array ; param publicKey constructor ( publicKey ) { this . _publicKey = publicKey ; } returns public toAddress ( ) { return Blake2b . sum256 ( this . _publicKey ) ; } param address returns public verify ( address ) { return ArrayHelper . equal ( this . toAddress ( ) , address ) ; } }