Add change type and payload
This commit is contained in:
parent
a79b578e5f
commit
6a3606f92c
@ -3,6 +3,7 @@ package objecttree
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto"
|
"github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto"
|
||||||
|
"github.com/gogo/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -48,6 +49,11 @@ func NewChange(id string, ch *treechangeproto.TreeChange, signature []byte) *Cha
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewChangeFromRoot(id string, ch *treechangeproto.RootChange, signature []byte) *Change {
|
func NewChangeFromRoot(id string, ch *treechangeproto.RootChange, signature []byte) *Change {
|
||||||
|
changeInfo := &treechangeproto.TreeChangeInfo{
|
||||||
|
ChangeType: ch.ChangeType,
|
||||||
|
ChangePayload: ch.ChangePayload,
|
||||||
|
}
|
||||||
|
data, _ := proto.Marshal(changeInfo)
|
||||||
return &Change{
|
return &Change{
|
||||||
Next: nil,
|
Next: nil,
|
||||||
AclHeadId: ch.AclHeadId,
|
AclHeadId: ch.AclHeadId,
|
||||||
@ -56,7 +62,8 @@ func NewChangeFromRoot(id string, ch *treechangeproto.RootChange, signature []by
|
|||||||
Timestamp: ch.Timestamp,
|
Timestamp: ch.Timestamp,
|
||||||
Identity: string(ch.Identity),
|
Identity: string(ch.Identity),
|
||||||
Signature: signature,
|
Signature: signature,
|
||||||
Data: []byte(ch.ChangeType),
|
Data: data,
|
||||||
|
Model: changeInfo,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,13 +26,14 @@ type BuilderContent struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InitialContent struct {
|
type InitialContent struct {
|
||||||
AclHeadId string
|
AclHeadId string
|
||||||
Identity []byte
|
Identity []byte
|
||||||
SigningKey signingkey.PrivKey
|
SigningKey signingkey.PrivKey
|
||||||
SpaceId string
|
SpaceId string
|
||||||
Seed []byte
|
Seed []byte
|
||||||
ChangeType string
|
ChangeType string
|
||||||
Timestamp int64
|
ChangePayload []byte
|
||||||
|
Timestamp int64
|
||||||
}
|
}
|
||||||
|
|
||||||
type nonVerifiableChangeBuilder struct {
|
type nonVerifiableChangeBuilder struct {
|
||||||
@ -122,41 +123,35 @@ func (c *changeBuilder) SetRootRawChange(rawIdChange *treechangeproto.RawTreeCha
|
|||||||
|
|
||||||
func (c *changeBuilder) BuildRoot(payload InitialContent) (ch *Change, rawIdChange *treechangeproto.RawTreeChangeWithId, err error) {
|
func (c *changeBuilder) BuildRoot(payload InitialContent) (ch *Change, rawIdChange *treechangeproto.RawTreeChangeWithId, err error) {
|
||||||
change := &treechangeproto.RootChange{
|
change := &treechangeproto.RootChange{
|
||||||
AclHeadId: payload.AclHeadId,
|
AclHeadId: payload.AclHeadId,
|
||||||
Timestamp: payload.Timestamp,
|
Timestamp: payload.Timestamp,
|
||||||
Identity: payload.Identity,
|
Identity: payload.Identity,
|
||||||
ChangeType: payload.ChangeType,
|
ChangeType: payload.ChangeType,
|
||||||
SpaceId: payload.SpaceId,
|
ChangePayload: payload.ChangePayload,
|
||||||
Seed: payload.Seed,
|
SpaceId: payload.SpaceId,
|
||||||
|
Seed: payload.Seed,
|
||||||
}
|
}
|
||||||
|
|
||||||
marshalledChange, err := proto.Marshal(change)
|
marshalledChange, err := proto.Marshal(change)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
signature, err := payload.SigningKey.Sign(marshalledChange)
|
signature, err := payload.SigningKey.Sign(marshalledChange)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
raw := &treechangeproto.RawTreeChange{
|
raw := &treechangeproto.RawTreeChange{
|
||||||
Payload: marshalledChange,
|
Payload: marshalledChange,
|
||||||
Signature: signature,
|
Signature: signature,
|
||||||
}
|
}
|
||||||
|
|
||||||
marshalledRawChange, err := proto.Marshal(raw)
|
marshalledRawChange, err := proto.Marshal(raw)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
id, err := cidutil.NewCidFromBytes(marshalledRawChange)
|
id, err := cidutil.NewCidFromBytes(marshalledRawChange)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ch = NewChangeFromRoot(id, change, signature)
|
ch = NewChangeFromRoot(id, change, signature)
|
||||||
|
|
||||||
rawIdChange = &treechangeproto.RawTreeChangeWithId{
|
rawIdChange = &treechangeproto.RawTreeChangeWithId{
|
||||||
RawChange: marshalledRawChange,
|
RawChange: marshalledRawChange,
|
||||||
Id: id,
|
Id: id,
|
||||||
@ -184,34 +179,27 @@ func (c *changeBuilder) Build(payload BuilderContent) (ch *Change, rawIdChange *
|
|||||||
} else {
|
} else {
|
||||||
change.ChangesData = payload.Content
|
change.ChangesData = payload.Content
|
||||||
}
|
}
|
||||||
|
|
||||||
marshalledChange, err := proto.Marshal(change)
|
marshalledChange, err := proto.Marshal(change)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
signature, err := payload.SigningKey.Sign(marshalledChange)
|
signature, err := payload.SigningKey.Sign(marshalledChange)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
raw := &treechangeproto.RawTreeChange{
|
raw := &treechangeproto.RawTreeChange{
|
||||||
Payload: marshalledChange,
|
Payload: marshalledChange,
|
||||||
Signature: signature,
|
Signature: signature,
|
||||||
}
|
}
|
||||||
|
|
||||||
marshalledRawChange, err := proto.Marshal(raw)
|
marshalledRawChange, err := proto.Marshal(raw)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
id, err := cidutil.NewCidFromBytes(marshalledRawChange)
|
id, err := cidutil.NewCidFromBytes(marshalledRawChange)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ch = NewChange(id, change, signature)
|
ch = NewChange(id, change, signature)
|
||||||
|
|
||||||
rawIdChange = &treechangeproto.RawTreeChangeWithId{
|
rawIdChange = &treechangeproto.RawTreeChangeWithId{
|
||||||
RawChange: marshalledRawChange,
|
RawChange: marshalledRawChange,
|
||||||
Id: id,
|
Id: id,
|
||||||
@ -264,7 +252,6 @@ func (c *changeBuilder) unmarshallRawChange(raw *treechangeproto.RawTreeChange,
|
|||||||
ch = NewChangeFromRoot(id, unmarshalled, raw.Signature)
|
ch = NewChangeFromRoot(id, unmarshalled, raw.Signature)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
unmarshalled := &treechangeproto.TreeChange{}
|
unmarshalled := &treechangeproto.TreeChange{}
|
||||||
err = proto.Unmarshal(raw.Payload, unmarshalled)
|
err = proto.Unmarshal(raw.Payload, unmarshalled)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -82,6 +82,20 @@ func (mr *MockObjectTreeMockRecorder) AddRawChanges(arg0, arg1 interface{}) *gom
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRawChanges", reflect.TypeOf((*MockObjectTree)(nil).AddRawChanges), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRawChanges", reflect.TypeOf((*MockObjectTree)(nil).AddRawChanges), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ChangeInfo mocks base method.
|
||||||
|
func (m *MockObjectTree) ChangeInfo() *treechangeproto.TreeChangeInfo {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
ret := m.ctrl.Call(m, "ChangeInfo")
|
||||||
|
ret0, _ := ret[0].(*treechangeproto.TreeChangeInfo)
|
||||||
|
return ret0
|
||||||
|
}
|
||||||
|
|
||||||
|
// ChangeInfo indicates an expected call of ChangeInfo.
|
||||||
|
func (mr *MockObjectTreeMockRecorder) ChangeInfo() *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeInfo", reflect.TypeOf((*MockObjectTree)(nil).ChangeInfo))
|
||||||
|
}
|
||||||
|
|
||||||
// ChangesAfterCommonSnapshot mocks base method.
|
// ChangesAfterCommonSnapshot mocks base method.
|
||||||
func (m *MockObjectTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error) {
|
func (m *MockObjectTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
|||||||
@ -52,6 +52,7 @@ type ReadableObjectTree interface {
|
|||||||
Id() string
|
Id() string
|
||||||
Header() *treechangeproto.RawTreeChangeWithId
|
Header() *treechangeproto.RawTreeChangeWithId
|
||||||
UnmarshalledHeader() *Change
|
UnmarshalledHeader() *Change
|
||||||
|
ChangeInfo() *treechangeproto.TreeChangeInfo
|
||||||
Heads() []string
|
Heads() []string
|
||||||
Root() *Change
|
Root() *Change
|
||||||
|
|
||||||
@ -142,6 +143,10 @@ func (ot *objectTree) UnmarshalledHeader() *Change {
|
|||||||
return ot.root
|
return ot.root
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ot *objectTree) ChangeInfo() *treechangeproto.TreeChangeInfo {
|
||||||
|
return ot.root.Model.(*treechangeproto.TreeChangeInfo)
|
||||||
|
}
|
||||||
|
|
||||||
func (ot *objectTree) Storage() treestorage.TreeStorage {
|
func (ot *objectTree) Storage() treestorage.TreeStorage {
|
||||||
return ot.treeStorage
|
return ot.treeStorage
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,11 +12,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ObjectTreeCreatePayload struct {
|
type ObjectTreeCreatePayload struct {
|
||||||
SignKey signingkey.PrivKey
|
SignKey signingkey.PrivKey
|
||||||
ChangeType string
|
ChangeType string
|
||||||
SpaceId string
|
ChangePayload []byte
|
||||||
Identity []byte
|
SpaceId string
|
||||||
IsEncrypted bool
|
Identity []byte
|
||||||
|
IsEncrypted bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type HistoryTreeParams struct {
|
type HistoryTreeParams struct {
|
||||||
@ -165,13 +166,14 @@ func createObjectTreeRoot(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
cnt := InitialContent{
|
cnt := InitialContent{
|
||||||
AclHeadId: aclHeadId,
|
AclHeadId: aclHeadId,
|
||||||
Identity: payload.Identity,
|
Identity: payload.Identity,
|
||||||
SigningKey: payload.SignKey,
|
SigningKey: payload.SignKey,
|
||||||
SpaceId: payload.SpaceId,
|
SpaceId: payload.SpaceId,
|
||||||
ChangeType: payload.ChangeType,
|
ChangeType: payload.ChangeType,
|
||||||
Timestamp: timestamp,
|
ChangePayload: payload.ChangePayload,
|
||||||
Seed: seed,
|
Timestamp: timestamp,
|
||||||
|
Seed: seed,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, root, err = NewChangeBuilder(keychain.NewKeychain(), nil).BuildRoot(cnt)
|
_, root, err = NewChangeBuilder(keychain.NewKeychain(), nil).BuildRoot(cnt)
|
||||||
|
|||||||
@ -193,6 +193,20 @@ func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 interface{}) *gomoc
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRawChanges", reflect.TypeOf((*MockSyncTree)(nil).AddRawChanges), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRawChanges", reflect.TypeOf((*MockSyncTree)(nil).AddRawChanges), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ChangeInfo mocks base method.
|
||||||
|
func (m *MockSyncTree) ChangeInfo() *treechangeproto.TreeChangeInfo {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
ret := m.ctrl.Call(m, "ChangeInfo")
|
||||||
|
ret0, _ := ret[0].(*treechangeproto.TreeChangeInfo)
|
||||||
|
return ret0
|
||||||
|
}
|
||||||
|
|
||||||
|
// ChangeInfo indicates an expected call of ChangeInfo.
|
||||||
|
func (mr *MockSyncTreeMockRecorder) ChangeInfo() *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeInfo", reflect.TypeOf((*MockSyncTree)(nil).ChangeInfo))
|
||||||
|
}
|
||||||
|
|
||||||
// ChangesAfterCommonSnapshot mocks base method.
|
// ChangesAfterCommonSnapshot mocks base method.
|
||||||
func (m *MockSyncTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error) {
|
func (m *MockSyncTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
|||||||
@ -16,6 +16,8 @@ message RootChange {
|
|||||||
bytes seed = 5;
|
bytes seed = 5;
|
||||||
// Identity is a public key of the tree's creator
|
// Identity is a public key of the tree's creator
|
||||||
bytes identity = 6;
|
bytes identity = 6;
|
||||||
|
// ChangePayload is a payload related to ChangeType
|
||||||
|
bytes changePayload = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TreeChange is a change of a tree
|
// TreeChange is a change of a tree
|
||||||
@ -94,3 +96,9 @@ message TreeFullSyncResponse {
|
|||||||
message TreeErrorResponse {
|
message TreeErrorResponse {
|
||||||
string error = 1;
|
string error = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TreeChangeInfo is used internally in Tree implementation for ease of marshalling
|
||||||
|
message TreeChangeInfo {
|
||||||
|
string changeType = 1;
|
||||||
|
bytes changePayload = 2;
|
||||||
|
}
|
||||||
@ -36,6 +36,8 @@ type RootChange struct {
|
|||||||
Seed []byte `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"`
|
Seed []byte `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"`
|
||||||
// Identity is a public key of the tree's creator
|
// Identity is a public key of the tree's creator
|
||||||
Identity []byte `protobuf:"bytes,6,opt,name=identity,proto3" json:"identity,omitempty"`
|
Identity []byte `protobuf:"bytes,6,opt,name=identity,proto3" json:"identity,omitempty"`
|
||||||
|
// ChangePayload is a payload related to ChangeType
|
||||||
|
ChangePayload []byte `protobuf:"bytes,7,opt,name=changePayload,proto3" json:"changePayload,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *RootChange) Reset() { *m = RootChange{} }
|
func (m *RootChange) Reset() { *m = RootChange{} }
|
||||||
@ -113,6 +115,13 @@ func (m *RootChange) GetIdentity() []byte {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *RootChange) GetChangePayload() []byte {
|
||||||
|
if m != nil {
|
||||||
|
return m.ChangePayload
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// TreeChange is a change of a tree
|
// TreeChange is a change of a tree
|
||||||
type TreeChange struct {
|
type TreeChange struct {
|
||||||
// TreeHeadIds are previous ids for this TreeChange
|
// TreeHeadIds are previous ids for this TreeChange
|
||||||
@ -725,6 +734,59 @@ func (m *TreeErrorResponse) GetError() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TreeChangeInfo is used internally in Tree implementation for ease of marshalling
|
||||||
|
type TreeChangeInfo struct {
|
||||||
|
ChangeType string `protobuf:"bytes,1,opt,name=changeType,proto3" json:"changeType,omitempty"`
|
||||||
|
ChangePayload []byte `protobuf:"bytes,2,opt,name=changePayload,proto3" json:"changePayload,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) Reset() { *m = TreeChangeInfo{} }
|
||||||
|
func (m *TreeChangeInfo) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*TreeChangeInfo) ProtoMessage() {}
|
||||||
|
func (*TreeChangeInfo) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_5033f0301ef9b772, []int{10}
|
||||||
|
}
|
||||||
|
func (m *TreeChangeInfo) XXX_Unmarshal(b []byte) error {
|
||||||
|
return m.Unmarshal(b)
|
||||||
|
}
|
||||||
|
func (m *TreeChangeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
if deterministic {
|
||||||
|
return xxx_messageInfo_TreeChangeInfo.Marshal(b, m, deterministic)
|
||||||
|
} else {
|
||||||
|
b = b[:cap(b)]
|
||||||
|
n, err := m.MarshalToSizedBuffer(b)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return b[:n], nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (m *TreeChangeInfo) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_TreeChangeInfo.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *TreeChangeInfo) XXX_Size() int {
|
||||||
|
return m.Size()
|
||||||
|
}
|
||||||
|
func (m *TreeChangeInfo) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_TreeChangeInfo.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_TreeChangeInfo proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) GetChangeType() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.ChangeType
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) GetChangePayload() []byte {
|
||||||
|
if m != nil {
|
||||||
|
return m.ChangePayload
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*RootChange)(nil), "treechange.RootChange")
|
proto.RegisterType((*RootChange)(nil), "treechange.RootChange")
|
||||||
proto.RegisterType((*TreeChange)(nil), "treechange.TreeChange")
|
proto.RegisterType((*TreeChange)(nil), "treechange.TreeChange")
|
||||||
@ -736,6 +798,7 @@ func init() {
|
|||||||
proto.RegisterType((*TreeFullSyncRequest)(nil), "treechange.TreeFullSyncRequest")
|
proto.RegisterType((*TreeFullSyncRequest)(nil), "treechange.TreeFullSyncRequest")
|
||||||
proto.RegisterType((*TreeFullSyncResponse)(nil), "treechange.TreeFullSyncResponse")
|
proto.RegisterType((*TreeFullSyncResponse)(nil), "treechange.TreeFullSyncResponse")
|
||||||
proto.RegisterType((*TreeErrorResponse)(nil), "treechange.TreeErrorResponse")
|
proto.RegisterType((*TreeErrorResponse)(nil), "treechange.TreeErrorResponse")
|
||||||
|
proto.RegisterType((*TreeChangeInfo)(nil), "treechange.TreeChangeInfo")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -743,48 +806,51 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var fileDescriptor_5033f0301ef9b772 = []byte{
|
var fileDescriptor_5033f0301ef9b772 = []byte{
|
||||||
// 656 bytes of a gzipped FileDescriptorProto
|
// 690 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xc1, 0x6e, 0xd3, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xc1, 0x4e, 0xdb, 0x4a,
|
||||||
0x10, 0xf5, 0x3a, 0x69, 0xd3, 0x4e, 0xd3, 0x16, 0xb6, 0x3d, 0x58, 0x15, 0x18, 0xcb, 0x07, 0x08,
|
0x14, 0xf5, 0x38, 0x01, 0xc3, 0x25, 0xc0, 0x7b, 0x03, 0x0b, 0x0b, 0xbd, 0xe7, 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, 0x35, 0x42,
|
0x1e, 0x5e, 0x9f, 0x87, 0x17, 0x18, 0x27, 0x91, 0x8c, 0xb6, 0xd4, 0x53, 0x94, 0xe0, 0x4d, 0x85,
|
||||||
0x61, 0x8a, 0xf8, 0xbf, 0x08, 0x00, 0x4b, 0x53, 0xb9, 0xa7, 0x43, 0x7a, 0x07, 0x16, 0x79, 0xd8,
|
0x50, 0x98, 0x22, 0xce, 0x35, 0x01, 0x60, 0x51, 0x24, 0xf7, 0x54, 0x48, 0xff, 0x83, 0x45, 0xee,
|
||||||
0x0b, 0x90, 0x47, 0x87, 0x91, 0x43, 0x3c, 0xd2, 0x59, 0x64, 0x53, 0x80, 0x3a, 0xd0, 0xd2, 0xa7,
|
0x0d, 0x5c, 0xe4, 0x7e, 0xcf, 0x37, 0x89, 0x4d, 0xba, 0x8b, 0x6c, 0x0a, 0x50, 0x13, 0x0c, 0xb5,
|
||||||
0x1e, 0x46, 0x8e, 0xad, 0xf7, 0xca, 0x90, 0xba, 0x00, 0x05, 0xe1, 0xc9, 0x30, 0x43, 0xa7, 0xa1,
|
0x6a, 0xcf, 0x37, 0x75, 0xf5, 0xae, 0x08, 0xa9, 0x05, 0x90, 0x11, 0x9e, 0x8c, 0x63, 0x34, 0x5b,
|
||||||
0x37, 0x0d, 0x44, 0xf1, 0xca, 0xb8, 0x8f, 0x42, 0xf2, 0x7e, 0xe6, 0x34, 0x3d, 0xd2, 0x69, 0xb0,
|
0xea, 0x65, 0x09, 0x49, 0x79, 0x65, 0x30, 0x44, 0x21, 0xf9, 0x30, 0x36, 0xdb, 0x36, 0xe9, 0xb6,
|
||||||
0x29, 0x40, 0x29, 0x34, 0x05, 0x62, 0xe4, 0xcc, 0x79, 0xa4, 0xd3, 0x66, 0xfa, 0x3b, 0xdd, 0x80,
|
0xd8, 0x14, 0xa0, 0x14, 0xda, 0x02, 0xd1, 0x37, 0xe7, 0x6c, 0xd2, 0xed, 0x30, 0xf5, 0x9f, 0x6e,
|
||||||
0x85, 0x38, 0xc2, 0x44, 0xc6, 0x72, 0xe8, 0xcc, 0x6b, 0x7c, 0x12, 0xfb, 0x3f, 0x6d, 0x80, 0x93,
|
0xc0, 0x42, 0xe0, 0x63, 0x28, 0x03, 0x39, 0x36, 0xe7, 0x15, 0x3e, 0x89, 0xe9, 0x43, 0x58, 0xce,
|
||||||
0x1c, 0x71, 0x2c, 0xda, 0x83, 0x25, 0xd5, 0x51, 0x21, 0x52, 0x38, 0xc4, 0x6b, 0x74, 0x16, 0x99,
|
0xb8, 0x8f, 0xf8, 0x78, 0x10, 0x71, 0xdf, 0x34, 0x54, 0x42, 0x15, 0x74, 0x7e, 0xea, 0x00, 0x27,
|
||||||
0x09, 0x55, 0xdb, 0xb2, 0xeb, 0x6d, 0xdd, 0x87, 0x15, 0x91, 0xf0, 0x4c, 0x74, 0x53, 0xb9, 0xcb,
|
0x09, 0x62, 0xde, 0x9a, 0x0d, 0x4b, 0x69, 0xdf, 0x59, 0x2b, 0xc2, 0x24, 0x76, 0xab, 0xbb, 0xc8,
|
||||||
0x85, 0xea, 0xae, 0x68, 0xa0, 0x86, 0xaa, 0x73, 0x8a, 0x96, 0xc4, 0x73, 0x2e, 0xb9, 0x6e, 0xa3,
|
0xca, 0x50, 0xb5, 0x79, 0xbd, 0xde, 0xfc, 0x23, 0x58, 0x11, 0x21, 0x8f, 0x45, 0x3f, 0x92, 0xbb,
|
||||||
0xcd, 0x4c, 0x88, 0x6e, 0x02, 0x0d, 0x07, 0x79, 0x8e, 0x89, 0x64, 0xc8, 0xa3, 0x23, 0x1c, 0x06,
|
0x5c, 0xa4, 0x1e, 0x64, 0x6d, 0xd6, 0xd0, 0x74, 0x9d, 0x4c, 0x87, 0x78, 0xc5, 0x25, 0x57, 0xcd,
|
||||||
0x5c, 0x74, 0x75, 0x5b, 0x4d, 0x36, 0x63, 0xa7, 0x6a, 0xcb, 0x7c, 0xdd, 0x16, 0xd3, 0x82, 0x56,
|
0x76, 0x58, 0x19, 0xa2, 0x9b, 0x40, 0xbd, 0x51, 0x92, 0x60, 0x28, 0x19, 0x72, 0xff, 0x10, 0xc7,
|
||||||
0xd5, 0x02, 0x65, 0x78, 0x2c, 0x8e, 0xc7, 0xfa, 0x9c, 0x05, 0x8f, 0x74, 0x16, 0x98, 0x81, 0xf8,
|
0x2e, 0x17, 0x7d, 0xd5, 0x7c, 0x9b, 0x35, 0xbc, 0xa9, 0x9a, 0x37, 0x5f, 0x37, 0xaf, 0x6c, 0x94,
|
||||||
0x2f, 0x60, 0x99, 0xf1, 0x73, 0xc3, 0x24, 0x07, 0x5a, 0x19, 0x1f, 0xf6, 0x52, 0x5e, 0xcc, 0xb5,
|
0x51, 0x33, 0xca, 0x02, 0x08, 0xc4, 0x71, 0xae, 0xcf, 0x5c, 0xb0, 0x49, 0x77, 0x81, 0x95, 0x10,
|
||||||
0xcd, 0xca, 0x50, 0x89, 0x10, 0xf1, 0x59, 0xc2, 0xe5, 0x20, 0x47, 0x6d, 0x4e, 0x9b, 0x4d, 0x01,
|
0xe7, 0x35, 0x2c, 0x33, 0x7e, 0x59, 0x32, 0xc9, 0x04, 0x23, 0xce, 0x3d, 0x25, 0x8a, 0xab, 0x08,
|
||||||
0x7f, 0x0f, 0xd6, 0x2a, 0x44, 0xef, 0x62, 0xd9, 0x3d, 0xd4, 0x45, 0x39, 0x3f, 0x2f, 0xa0, 0x31,
|
0x53, 0x11, 0x22, 0xb8, 0x08, 0xb9, 0x1c, 0x25, 0xa8, 0xcc, 0xe9, 0xb0, 0x29, 0xe0, 0xec, 0xc1,
|
||||||
0xe1, 0x14, 0xa0, 0x2b, 0x60, 0xc7, 0xa5, 0xd1, 0x76, 0x1c, 0xf9, 0xdf, 0x09, 0xac, 0x2a, 0x8a,
|
0x5a, 0x85, 0xe8, 0x7d, 0x20, 0xfb, 0x3d, 0x55, 0x94, 0xf0, 0xcb, 0x0c, 0xca, 0x09, 0xa7, 0x00,
|
||||||
0xe3, 0x61, 0x12, 0xbe, 0x44, 0x21, 0x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 0x72, 0x75, 0x63, 0x91, 0x3f, 0x37, 0x16, 0xf9,
|
||||||
|
0x71, 0x6b, 0x69, 0x57, 0xb7, 0x96, 0x76, 0x7d, 0x6b, 0x69, 0x1f, 0x1e, 0xdf, 0xf1, 0x6b, 0x77,
|
||||||
|
0x36, 0xaf, 0x7e, 0x9e, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x24, 0x93, 0x3b, 0x00, 0x1f, 0x07,
|
||||||
|
0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *RootChange) Marshal() (dAtA []byte, err error) {
|
func (m *RootChange) Marshal() (dAtA []byte, err error) {
|
||||||
@ -807,6 +873,13 @@ func (m *RootChange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if len(m.ChangePayload) > 0 {
|
||||||
|
i -= len(m.ChangePayload)
|
||||||
|
copy(dAtA[i:], m.ChangePayload)
|
||||||
|
i = encodeVarintTreechange(dAtA, i, uint64(len(m.ChangePayload)))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x3a
|
||||||
|
}
|
||||||
if len(m.Identity) > 0 {
|
if len(m.Identity) > 0 {
|
||||||
i -= len(m.Identity)
|
i -= len(m.Identity)
|
||||||
copy(dAtA[i:], m.Identity)
|
copy(dAtA[i:], m.Identity)
|
||||||
@ -1362,6 +1435,43 @@ func (m *TreeErrorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) Marshal() (dAtA []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
dAtA = make([]byte, size)
|
||||||
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return dAtA[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) MarshalTo(dAtA []byte) (int, error) {
|
||||||
|
size := m.Size()
|
||||||
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
|
i := len(dAtA)
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
if len(m.ChangePayload) > 0 {
|
||||||
|
i -= len(m.ChangePayload)
|
||||||
|
copy(dAtA[i:], m.ChangePayload)
|
||||||
|
i = encodeVarintTreechange(dAtA, i, uint64(len(m.ChangePayload)))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x12
|
||||||
|
}
|
||||||
|
if len(m.ChangeType) > 0 {
|
||||||
|
i -= len(m.ChangeType)
|
||||||
|
copy(dAtA[i:], m.ChangeType)
|
||||||
|
i = encodeVarintTreechange(dAtA, i, uint64(len(m.ChangeType)))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0xa
|
||||||
|
}
|
||||||
|
return len(dAtA) - i, nil
|
||||||
|
}
|
||||||
|
|
||||||
func encodeVarintTreechange(dAtA []byte, offset int, v uint64) int {
|
func encodeVarintTreechange(dAtA []byte, offset int, v uint64) int {
|
||||||
offset -= sovTreechange(v)
|
offset -= sovTreechange(v)
|
||||||
base := offset
|
base := offset
|
||||||
@ -1402,6 +1512,10 @@ func (m *RootChange) Size() (n int) {
|
|||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovTreechange(uint64(l))
|
n += 1 + l + sovTreechange(uint64(l))
|
||||||
}
|
}
|
||||||
|
l = len(m.ChangePayload)
|
||||||
|
if l > 0 {
|
||||||
|
n += 1 + l + sovTreechange(uint64(l))
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1650,6 +1764,23 @@ func (m *TreeErrorResponse) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *TreeChangeInfo) Size() (n int) {
|
||||||
|
if m == nil {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
l = len(m.ChangeType)
|
||||||
|
if l > 0 {
|
||||||
|
n += 1 + l + sovTreechange(uint64(l))
|
||||||
|
}
|
||||||
|
l = len(m.ChangePayload)
|
||||||
|
if l > 0 {
|
||||||
|
n += 1 + l + sovTreechange(uint64(l))
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
func sovTreechange(x uint64) (n int) {
|
func sovTreechange(x uint64) (n int) {
|
||||||
return (math_bits.Len64(x|1) + 6) / 7
|
return (math_bits.Len64(x|1) + 6) / 7
|
||||||
}
|
}
|
||||||
@ -1868,6 +1999,40 @@ func (m *RootChange) Unmarshal(dAtA []byte) error {
|
|||||||
m.Identity = []byte{}
|
m.Identity = []byte{}
|
||||||
}
|
}
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
|
case 7:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ChangePayload", wireType)
|
||||||
|
}
|
||||||
|
var byteLen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowTreechange
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
byteLen |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if byteLen < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + byteLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.ChangePayload = append(m.ChangePayload[:0], dAtA[iNdEx:postIndex]...)
|
||||||
|
if m.ChangePayload == nil {
|
||||||
|
m.ChangePayload = []byte{}
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipTreechange(dAtA[iNdEx:])
|
skippy, err := skipTreechange(dAtA[iNdEx:])
|
||||||
@ -3233,6 +3398,122 @@ func (m *TreeErrorResponse) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
func (m *TreeChangeInfo) Unmarshal(dAtA []byte) error {
|
||||||
|
l := len(dAtA)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowTreechange
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: TreeChangeInfo: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: TreeChangeInfo: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
|
||||||
|
}
|
||||||
|
var stringLen uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowTreechange
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + intStringLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.ChangeType = string(dAtA[iNdEx:postIndex])
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 2:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ChangePayload", wireType)
|
||||||
|
}
|
||||||
|
var byteLen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowTreechange
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
byteLen |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if byteLen < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + byteLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.ChangePayload = append(m.ChangePayload[:0], dAtA[iNdEx:postIndex]...)
|
||||||
|
if m.ChangePayload == nil {
|
||||||
|
m.ChangePayload = []byte{}
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipTreechange(dAtA[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||||
|
return ErrInvalidLengthTreechange
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
func skipTreechange(dAtA []byte) (n int, err error) {
|
func skipTreechange(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
|||||||
@ -14,8 +14,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SpaceSettingsChangeType = "reserved.spacesettings"
|
SpaceReserved = "space.reserved"
|
||||||
SpaceDerivationScheme = "derivation.standard"
|
SpaceDerivationScheme = "derivation.standard"
|
||||||
)
|
)
|
||||||
|
|
||||||
func storagePayloadForSpaceCreate(payload SpaceCreatePayload) (storagePayload spacestorage.SpaceStorageCreatePayload, err error) {
|
func storagePayloadForSpaceCreate(payload SpaceCreatePayload) (storagePayload spacestorage.SpaceStorageCreatePayload, err error) {
|
||||||
@ -36,11 +36,12 @@ func storagePayloadForSpaceCreate(payload SpaceCreatePayload) (storagePayload sp
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
header := &spacesyncproto.SpaceHeader{
|
header := &spacesyncproto.SpaceHeader{
|
||||||
Identity: identity,
|
Identity: identity,
|
||||||
Timestamp: time.Now().UnixNano(),
|
Timestamp: time.Now().UnixNano(),
|
||||||
SpaceType: payload.SpaceType,
|
SpaceType: payload.SpaceType,
|
||||||
ReplicationKey: payload.ReplicationKey,
|
SpaceHeaderPayload: payload.SpacePayload,
|
||||||
Seed: spaceHeaderSeed,
|
ReplicationKey: payload.ReplicationKey,
|
||||||
|
Seed: spaceHeaderSeed,
|
||||||
}
|
}
|
||||||
marshalled, err := header.Marshal()
|
marshalled, err := header.Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -101,7 +102,7 @@ func storagePayloadForSpaceCreate(payload SpaceCreatePayload) (storagePayload sp
|
|||||||
SigningKey: payload.SigningKey,
|
SigningKey: payload.SigningKey,
|
||||||
SpaceId: spaceId,
|
SpaceId: spaceId,
|
||||||
Seed: spaceSettingsSeed,
|
Seed: spaceSettingsSeed,
|
||||||
ChangeType: SpaceSettingsChangeType,
|
ChangeType: SpaceReserved,
|
||||||
Timestamp: time.Now().UnixNano(),
|
Timestamp: time.Now().UnixNano(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -146,9 +147,10 @@ func storagePayloadForSpaceDerive(payload SpaceDerivePayload) (storagePayload sp
|
|||||||
|
|
||||||
// preparing header and space id
|
// preparing header and space id
|
||||||
header := &spacesyncproto.SpaceHeader{
|
header := &spacesyncproto.SpaceHeader{
|
||||||
Identity: identity,
|
Identity: identity,
|
||||||
SpaceType: SpaceTypeDerived,
|
SpaceType: payload.SpaceType,
|
||||||
ReplicationKey: repKey,
|
SpaceHeaderPayload: payload.SpacePayload,
|
||||||
|
ReplicationKey: repKey,
|
||||||
}
|
}
|
||||||
marshalled, err := header.Marshal()
|
marshalled, err := header.Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -201,7 +203,7 @@ func storagePayloadForSpaceDerive(payload SpaceDerivePayload) (storagePayload sp
|
|||||||
Identity: aclRoot.Identity,
|
Identity: aclRoot.Identity,
|
||||||
SigningKey: payload.SigningKey,
|
SigningKey: payload.SigningKey,
|
||||||
SpaceId: spaceId,
|
SpaceId: spaceId,
|
||||||
ChangeType: SpaceSettingsChangeType,
|
ChangeType: SpaceReserved,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|||||||
@ -52,6 +52,8 @@ type SpaceCreatePayload struct {
|
|||||||
ReadKey []byte
|
ReadKey []byte
|
||||||
// ReplicationKey is a key which is to be used to determine the node where the space should be held
|
// ReplicationKey is a key which is to be used to determine the node where the space should be held
|
||||||
ReplicationKey uint64
|
ReplicationKey uint64
|
||||||
|
// SpacePayload is an arbitrary payload related to space type
|
||||||
|
SpacePayload []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type HandleMessage struct {
|
type HandleMessage struct {
|
||||||
@ -61,11 +63,11 @@ type HandleMessage struct {
|
|||||||
Message *spacesyncproto.ObjectSyncMessage
|
Message *spacesyncproto.ObjectSyncMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
const SpaceTypeDerived = "derived.space"
|
|
||||||
|
|
||||||
type SpaceDerivePayload struct {
|
type SpaceDerivePayload struct {
|
||||||
SigningKey signingkey.PrivKey
|
SigningKey signingkey.PrivKey
|
||||||
EncryptionKey encryptionkey.PrivKey
|
EncryptionKey encryptionkey.PrivKey
|
||||||
|
SpaceType string
|
||||||
|
SpacePayload []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type SpaceDescription struct {
|
type SpaceDescription struct {
|
||||||
|
|||||||
@ -98,6 +98,7 @@ message SpaceHeader {
|
|||||||
string spaceType = 3;
|
string spaceType = 3;
|
||||||
uint64 replicationKey = 4;
|
uint64 replicationKey = 4;
|
||||||
bytes seed = 5;
|
bytes seed = 5;
|
||||||
|
bytes spaceHeaderPayload = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// RawSpaceHeader is raw header for SpaceHeader
|
// RawSpaceHeader is raw header for SpaceHeader
|
||||||
|
|||||||
@ -694,11 +694,12 @@ func (m *SpacePayload) GetSpaceSettingsPayloadId() string {
|
|||||||
|
|
||||||
// SpaceHeader is a header for a space
|
// SpaceHeader is a header for a space
|
||||||
type SpaceHeader struct {
|
type SpaceHeader struct {
|
||||||
Identity []byte `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
Identity []byte `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||||||
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||||
SpaceType string `protobuf:"bytes,3,opt,name=spaceType,proto3" json:"spaceType,omitempty"`
|
SpaceType string `protobuf:"bytes,3,opt,name=spaceType,proto3" json:"spaceType,omitempty"`
|
||||||
ReplicationKey uint64 `protobuf:"varint,4,opt,name=replicationKey,proto3" json:"replicationKey,omitempty"`
|
ReplicationKey uint64 `protobuf:"varint,4,opt,name=replicationKey,proto3" json:"replicationKey,omitempty"`
|
||||||
Seed []byte `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"`
|
Seed []byte `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"`
|
||||||
|
SpaceHeaderPayload []byte `protobuf:"bytes,6,opt,name=spaceHeaderPayload,proto3" json:"spaceHeaderPayload,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *SpaceHeader) Reset() { *m = SpaceHeader{} }
|
func (m *SpaceHeader) Reset() { *m = SpaceHeader{} }
|
||||||
@ -769,6 +770,13 @@ func (m *SpaceHeader) GetSeed() []byte {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *SpaceHeader) GetSpaceHeaderPayload() []byte {
|
||||||
|
if m != nil {
|
||||||
|
return m.SpaceHeaderPayload
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// RawSpaceHeader is raw header for SpaceHeader
|
// RawSpaceHeader is raw header for SpaceHeader
|
||||||
type RawSpaceHeader struct {
|
type RawSpaceHeader struct {
|
||||||
SpaceHeader []byte `protobuf:"bytes,1,opt,name=spaceHeader,proto3" json:"spaceHeader,omitempty"`
|
SpaceHeader []byte `protobuf:"bytes,1,opt,name=spaceHeader,proto3" json:"spaceHeader,omitempty"`
|
||||||
@ -1240,72 +1248,73 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var fileDescriptor_80e49f1f4ac27799 = []byte{
|
var fileDescriptor_80e49f1f4ac27799 = []byte{
|
||||||
// 1030 bytes of a gzipped FileDescriptorProto
|
// 1042 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4b, 0x6f, 0xdb, 0x46,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4f, 0x6f, 0x1b, 0x45,
|
||||||
0x10, 0x16, 0xe9, 0xa7, 0xc6, 0xb2, 0xcc, 0x6c, 0x9c, 0x44, 0x55, 0x0c, 0x45, 0x58, 0x14, 0x85,
|
0x14, 0xf7, 0x6e, 0xd2, 0x24, 0x7e, 0x71, 0x9c, 0xed, 0x34, 0x6d, 0x8d, 0x1b, 0xb9, 0xd6, 0x08,
|
||||||
0x91, 0x43, 0x1e, 0x72, 0x51, 0x20, 0x69, 0x7b, 0x48, 0x64, 0xa7, 0x11, 0x8a, 0xd4, 0xc6, 0xaa,
|
0xa1, 0xa8, 0x87, 0xb4, 0x75, 0x10, 0x52, 0x0b, 0x1c, 0x5a, 0x27, 0xa5, 0x16, 0x2a, 0x89, 0xc6,
|
||||||
0x41, 0x81, 0x02, 0x39, 0xac, 0xc9, 0xb1, 0xc4, 0x96, 0x22, 0x59, 0xee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d4, 0xbe, 0x6f, 0xaf, 0xfe, 0x57, 0xf1,
|
||||||
0xb3, 0xaa, 0x1f, 0x0a, 0x00, 0x00,
|
0x7c, 0x43, 0xff, 0x39, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x13, 0xff, 0xe7, 0x17, 0x4f, 0x0a,
|
||||||
|
0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *HeadSyncRange) Marshal() (dAtA []byte, err error) {
|
func (m *HeadSyncRange) Marshal() (dAtA []byte, err error) {
|
||||||
@ -1784,6 +1793,13 @@ func (m *SpaceHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if len(m.SpaceHeaderPayload) > 0 {
|
||||||
|
i -= len(m.SpaceHeaderPayload)
|
||||||
|
copy(dAtA[i:], m.SpaceHeaderPayload)
|
||||||
|
i = encodeVarintSpacesync(dAtA, i, uint64(len(m.SpaceHeaderPayload)))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x32
|
||||||
|
}
|
||||||
if len(m.Seed) > 0 {
|
if len(m.Seed) > 0 {
|
||||||
i -= len(m.Seed)
|
i -= len(m.Seed)
|
||||||
copy(dAtA[i:], m.Seed)
|
copy(dAtA[i:], m.Seed)
|
||||||
@ -2387,6 +2403,10 @@ func (m *SpaceHeader) Size() (n int) {
|
|||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovSpacesync(uint64(l))
|
n += 1 + l + sovSpacesync(uint64(l))
|
||||||
}
|
}
|
||||||
|
l = len(m.SpaceHeaderPayload)
|
||||||
|
if l > 0 {
|
||||||
|
n += 1 + l + sovSpacesync(uint64(l))
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4041,6 +4061,40 @@ func (m *SpaceHeader) Unmarshal(dAtA []byte) error {
|
|||||||
m.Seed = []byte{}
|
m.Seed = []byte{}
|
||||||
}
|
}
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
|
case 6:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceHeaderPayload", wireType)
|
||||||
|
}
|
||||||
|
var byteLen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowSpacesync
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
byteLen |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if byteLen < 0 {
|
||||||
|
return ErrInvalidLengthSpacesync
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + byteLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthSpacesync
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.SpaceHeaderPayload = append(m.SpaceHeaderPayload[:0], dAtA[iNdEx:postIndex]...)
|
||||||
|
if m.SpaceHeaderPayload == nil {
|
||||||
|
m.SpaceHeaderPayload = []byte{}
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipSpacesync(dAtA[iNdEx:])
|
skippy, err := skipSpacesync(dAtA[iNdEx:])
|
||||||
|
|||||||
@ -38,11 +38,12 @@ func (m *MockCoordinatorClient) EXPECT() *MockCoordinatorClientMockRecorder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ChangeStatus mocks base method.
|
// ChangeStatus mocks base method.
|
||||||
func (m *MockCoordinatorClient) ChangeStatus(arg0 context.Context, arg1 string, arg2 *treechangeproto.RawTreeChangeWithId) error {
|
func (m *MockCoordinatorClient) ChangeStatus(arg0 context.Context, arg1 string, arg2 *treechangeproto.RawTreeChangeWithId) (*coordinatorproto.SpaceStatusPayload, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "ChangeStatus", arg0, arg1, arg2)
|
ret := m.ctrl.Call(m, "ChangeStatus", arg0, arg1, arg2)
|
||||||
ret0, _ := ret[0].(error)
|
ret0, _ := ret[0].(*coordinatorproto.SpaceStatusPayload)
|
||||||
return ret0
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChangeStatus indicates an expected call of ChangeStatus.
|
// ChangeStatus indicates an expected call of ChangeStatus.
|
||||||
@ -110,10 +111,10 @@ func (mr *MockCoordinatorClientMockRecorder) SpaceSign(arg0, arg1, arg2 interfac
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StatusCheck mocks base method.
|
// StatusCheck mocks base method.
|
||||||
func (m *MockCoordinatorClient) StatusCheck(arg0 context.Context, arg1 string) (*coordinatorproto.SpaceStatusCheckResponse, error) {
|
func (m *MockCoordinatorClient) StatusCheck(arg0 context.Context, arg1 string) (*coordinatorproto.SpaceStatusPayload, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "StatusCheck", arg0, arg1)
|
ret := m.ctrl.Call(m, "StatusCheck", arg0, arg1)
|
||||||
ret0, _ := ret[0].(*coordinatorproto.SpaceStatusCheckResponse)
|
ret0, _ := ret[0].(*coordinatorproto.SpaceStatusPayload)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user