View Source hex_registry (hex_core v0.10.0)

Functions for encoding and decoding Hex registries.

Link to this section Summary

Link to this section Types

-type private_key() :: #'RSAPrivateKey'{} | binary().
-type public_key() :: #'RSAPublicKey'{} | binary().

Link to this section Functions

Link to this function

build_names(Names, PrivateKey)

View Source
Builds names resource.
Link to this function

build_package(Package, PrivateKey)

View Source
Builds package resource.
Link to this function

build_versions(Versions, PrivateKey)

View Source
Builds versions resource.
Link to this function

decode_and_verify_signed(Signed, PublicKey)

View Source
-spec decode_and_verify_signed(binary(), public_key()) -> {ok, binary()} | {error, term()}.
Link to this function

decode_names(Payload, Repository)

View Source
Link to this function

decode_package(Payload, Repository, Package)

View Source
Link to this function

decode_versions(Payload, Repository)

View Source
Link to this function

encode_versions(Versions)

View Source
Link to this function

sign(Binary, PrivateKey)

View Source
-spec sign(binary(), private_key()) -> binary().
Link to this function

sign_protobuf(Payload, PrivateKey)

View Source
Link to this function

unpack_names(Payload, Repository, PublicKey)

View Source
Unpacks names resource.
Link to this function

unpack_package(Payload, Repository, Name, PublicKey)

View Source
Unpacks package resource.
Link to this function

unpack_versions(Payload, Repository, PublicKey)

View Source
Unpacks versions resource.
Link to this function

verify(Binary, Signature, PublicKey)

View Source
-spec verify(binary(), binary(), public_key()) -> boolean() | {error, term()}.