ALGORITHM property
Signature algorithm, which fixes the one hash the signature is over: "secp256k1-compact-bitcoin": the Bitcoin signed-message hash SHA-256(SHA-256("\x18Bitcoin Signed Message:\n" || CompactSize(len) || SIGNED_PAYLOAD)), as Bitcoin Core's signmessage signs it (the double SHA-256 is the protocol's own, applied once); "secp256k1-compact-ethereum": the EIP-191 personal_sign hash Keccak-256("\x19Ethereum Signed Message:\n" || decimal(len) || SIGNED_PAYLOAD), low-S; "ed25519": raw Ed25519 over SIGNED_PAYLOAD itself. Both secp256k1 forms are the 65-byte compact recoverable signature header||r||s (header 27 + recovery id, +4 for a compressed key; signers emit 31 + recovery id). A verifier hashes SIGNED_PAYLOAD with the chain's protocol, recovers the key and compares it with PUBLIC_KEY (33-byte compressed). Nothing hashes the payload before the protocol hash.
Implementation
String? get ALGORITHM => const fb.StringReader().vTableGetNullable(_bc, _bcOffset, 16);