fn inspect_witness(
    metamap: &[(Value, Value)]
) -> Result<[u8; 64], Result<Signature, Box<dyn Error>>>
Expand description

To produce the witness field in the case of a staking public key, the CBOR representation of a map containing a single entry with key 61284 and the registration metadata map is signed with the staking key as follows: first, the blake2b-256 hash of the data is obtained. This hash is then signed using the Ed25519 signature algorithm. The witness metadata entry is added to the transaction under key 61285. This function extracts and verifies the witness signature provided in the registration.