forked from TrueCloudLab/frostfs-api-go
object: Add public key header type
Object can contain public key header. It will be used for object verification. This header can contain owner's public key or be the part of x509 chain verification in couple with verification header.
This commit is contained in:
parent
f0097d6c24
commit
50d3649acf
3 changed files with 334 additions and 55 deletions
|
@ -45,6 +45,8 @@ message Header {
|
|||
IntegrityHeader Integrity = 9;
|
||||
// StorageGroup contains meta information for the data audit
|
||||
storagegroup.StorageGroup StorageGroup = 10;
|
||||
// PublicKey of owner of the object. Key is used for verification and can be based on NeoID or x509 cert.
|
||||
PublicKey PublicKey = 11;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,3 +124,8 @@ message Object {
|
|||
// Payload is an object's payload
|
||||
bytes Payload = 3;
|
||||
}
|
||||
|
||||
message PublicKey {
|
||||
// Value contains marshaled ecdsa public key
|
||||
bytes Value = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue