feat: initial byte types

This commit is contained in:
Derrick Hammer 2024-01-03 03:46:30 -05:00
parent 5bee54d174
commit d5dc1de418
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 30 additions and 0 deletions

14
types/cid.go Normal file
View File

@ -0,0 +1,14 @@
package types
type CIDType int
const (
CIDTypeRaw CIDType = 0x26
CIDTypeMetadataMedia CIDType = 0xc5
CIDTypeMetadataWebapp CIDType = 0x59
CIDTypeResolver CIDType = 0x25
CIDTypeUserIdentity CIDType = 0x77
CIDTypeBridge CIDType = 0x3a
CIDTypeEncryptedStatic CIDType = 0xae
CIDTypeEncryptedDynamic CIDType = 0xad
)

8
types/hash.go Normal file
View File

@ -0,0 +1,8 @@
package types
type HashType int
const (
HashTypeBlake3 HashType = 0x1f
HashTypeEd25519 HashType = 0xed
)

8
types/registry.go Normal file
View File

@ -0,0 +1,8 @@
package types
type RegistryType int
const (
RegistryTypeCID RegistryType = 0x5a
RegistryTypeEncryptedCID RegistryType = 0x5e
)