Skip to main content

Crate arete_hash

Crate arete_hash 

Source
Expand description

Versioned, typed, domain-separated artifact identities for Arete.

This crate is additive. Existing bare SHA-256 values in other Arete crates retain their legacy definitions until an explicit migration names them.

Structs§

AnyHashId
ArtifactFile
ArtifactTreeEntry
AstPortable
CanonicalIdlDocument
Strictly parsed IDL plus every authoritative v1 IDL projection.
Compiler
CompilerSourceV1
CompilerV1
Frozen v1 identity projection for the OSS SDK compiler source tree.
DecoderContent
DecoderFixtureCaseV1
DecoderFixturePrivateDiagnosticsV1
DecoderFixtureSet
DecoderFixtureSetV1
DeploymentRelease
HashId
HostedManagedProgramReleaseV1
IdentityMetadata
IdlContent
IdlHashes
IdlNormalized
IdlPortable
IdlSource
InstructionAccountV1
InstructionAmountHintV1
InstructionArgumentV1
InstructionDefinitionV1
LiveSpec
NonHashIdentityMetadata
OssGeneratedProgramReleaseV1
OssProgramIdentityV1
PdaDefinitionV1
ProgramReadBindingId
ProgramRelease
ProgramSpec
ProgramSpecV1
RuntimeArtifact
SdkDefinition
SdkDefinitionV1
Frozen v1 identity projection for one generated program SDK definition.
SdkExtension
SdkOutputTree
StackManifest
TupleField
VectorOutcome
VectorTreeEntry

Enums§

AccountResolutionV1
AmountDecimalsSourceV1
ArtifactEntryKind
CanonicalizationProfile
DecoderFixtureAccountDecodeErrorCategory
DecoderFixtureExpectedV1
HashError
HashKindName
IdentityClass
PdaSeedV1
VectorInput
Owned form of the language-neutral vector input encodings.
Visibility

Constants§

COMPILER_SCHEMA_V1
DECODER_FIXTURE_ACCOUNT_DECODE_ERROR_CATEGORIES
DECODER_FIXTURE_MAX_ACCOUNT_BYTES
DECODER_FIXTURE_MAX_CASES
DECODER_FIXTURE_MAX_TOTAL_ACCOUNT_BYTES
DECODER_FIXTURE_PUBLIC_VALUE_DIGEST_PREFIX
DECODER_FIXTURE_SCHEMA_V1
HASH_ALGORITHM
HASH_PROTOCOL_LABEL
HASH_PROTOCOL_VERSION
HOSTED_MANAGED_RELEASE_PROFILE
IDENTITY_REGISTRY
NON_HASH_IDENTITY_REGISTRY
OSS_DECODER_ENGINE_ID
OSS_GENERATED_RELEASE_PROFILE
PROGRAM_RELEASE_SCHEMA_V1
PROGRAM_SPEC_SCHEMA_V1
SDK_DEFINITION_PROGRAM_SPEC_INPUT_KIND
SDK_DEFINITION_SCHEMA_V1

Traits§

Kind

Functions§

artifact_tree_payload
build_oss_program_identity_v1_from_bytes
build_program_spec_v1_from_bytes
build_program_spec_v1_from_idl
Compatibility adapter for callers that no longer have the original bytes.
canonicalize_jcs
canonicalize_json_bytes
canonicalize_json_value
digest_decoder_fixture_public_value_v1
execute_vector
Execute one hash vector: build the canonical payload for the profile, frame it, and digest it. The declared profile must match the registry profile for the kind; unknown kinds fail closed during vector parsing.
framed_preimage
framed_tuple_payload
hash_artifact_tree
hash_decoder_fixture_set_v1
hash_framed_tuple
hash_jcs
hash_json_bytes
hash_raw_bytes
identity_metadata
parse_decoder_fixture_set_v1
parse_json_bytes_strict
Parse JSON bytes without first converting through a JavaScript number.
portable_idl_projection
project_without_artifact_hash
Remove the declared top-level self-hash field and no other field.
validate_artifact_path
validate_decoder_fixture_set_v1