pub fn accept_record( key: &[u8; 32], record: &[u8], objects: &mut BTreeMap<[u8; 32], PrivateObject>, ) -> Result<u64, Error>