diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-01-27 19:59:47 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-01-27 19:59:47 +0100 |
commit | 0284a7460f03799452f4743a0032f2ae1564a3e8 (patch) | |
tree | f735b7d5aa39b476f008e1d19665354fa5e3d1d4 /namespace | |
parent | f5ad698cdb0fc9ecd8ad4c7b2cb7ec11ac0435ef (diff) |
started replacing x509 with namespace
Diffstat (limited to 'namespace')
-rw-r--r-- | namespace/namespace.go | 8 | ||||
-rw-r--r-- | namespace/testdata/data.go | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/namespace/namespace.go b/namespace/namespace.go index a02de6d..f5c56cf 100644 --- a/namespace/namespace.go +++ b/namespace/namespace.go @@ -4,10 +4,10 @@ // // For example, this is how a serialized Ed25519 namespace looks like: // -// 0 2 34 (byte index) -// +---+----------------------+ -// | 1 + Verification key + -// +---+----------------------+ +// 0 2 3 35 (byte index) +// +----+-----------------------+ +// | 1 + 32 + Verification key + +// +----+-----------------------+ package namespace import ( diff --git a/namespace/testdata/data.go b/namespace/testdata/data.go index 2cf4b11..5f3f4df 100644 --- a/namespace/testdata/data.go +++ b/namespace/testdata/data.go @@ -7,6 +7,12 @@ import ( var ( Ed25519Vk = mustDecodeB64("HOQFUkKNWpjYAhNKTyWCzahlI7RDtf5123kHD2LACj0=") Ed25519Sk = mustDecodeB64("Zaajc50Xt1tNpTj6WYkljzcVjLXL2CcQcHFT/xZqYEcc5AVSQo1amNgCE0pPJYLNqGUjtEO1/nXbeQcPYsAKPQ==") + + Ed25519Vk2 = mustDecodeB64("LqrWb9JwQUTk/SwTNDdMH8aRmy3mbmhwEepO5WSgb+A=") + Ed25519Sk2 = mustDecodeB64("fDkSq4cWvG72yMhUyHVcZ72QKerZ66msgyVqDvfufZQuqtZv0nBBROT9LBM0N0wfxpGbLeZuaHAR6k7lZKBv4A==") + + Ed25519Vk3 = mustDecodeB64("Icd1U1oY0z+5iAwgCQZyGI+pycGs6GI2rQO8gAzT7Y0=") + Ed25519Sk3 = mustDecodeB64("Q6uNL7VKv9flaBIXBXy/NyhNOicLYKKmfuJ6tLReMvQhx3VTWhjTP7mIDCAJBnIYj6nJwazoYjatA7yADNPtjQ==") ) func mustDecodeB64(s string) []byte { |