Skip to content

Commit

Permalink
update version references
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Dec 13, 2023
1 parent ab50183 commit f8f0dd3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions x/data/iri.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const (
)

// ToIRI converts the ContentHash_Raw to an IRI (internationalized URI) based on the following
// pattern: regen:{base58check(concat( byte(0x0), byte(digest_algorithm), hash), 1)}.{file_extension}
// This is the same as ContentHash_Raw.ToIRI from regen.data.v1 except that the media type is replaced with a file extension
// and the base58check version byte is 1 instead of 0.
// pattern: regen:{base58check(concat( byte(0x0), byte(digest_algorithm), hash), 0)}.{file_extension}
func (chr ContentHash_Raw) ToIRI() (string, error) {
err := chr.Validate()
if err != nil {
Expand All @@ -52,8 +50,7 @@ func (chr ContentHash_Raw) ToIRI() (string, error) {

// ToIRI converts the ContentHash_Graph to an IRI (internationalized URI) based on the following
// pattern: regen:{base58check(concat(byte(0x1), byte(canonicalization_algorithm),
// byte(merkle_tree), byte(digest_algorithm), hash), 1)}.rdf
// This is the same as ContentHash_Graph.ToIRI except that the base58check version byte is 1 instead of 0.
// byte(merkle_tree), byte(digest_algorithm), hash), 0)}.rdf
func (chg ContentHash_Graph) ToIRI() (string, error) {
err := chg.Validate()
if err != nil {
Expand Down

0 comments on commit f8f0dd3

Please sign in to comment.