mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: remove global integrity proof from genesis state
This commit is contained in:
parent
d21d109128
commit
b025f35220
File diff suppressed because it is too large
Load Diff
@ -10,17 +10,6 @@ option go_package = "github.com/onsonr/sonr/x/did/types";
|
|||||||
message GenesisState {
|
message GenesisState {
|
||||||
// Params defines all the parameters of the module.
|
// Params defines all the parameters of the module.
|
||||||
Params params = 1 [(gogoproto.nullable) = false];
|
Params params = 1 [(gogoproto.nullable) = false];
|
||||||
|
|
||||||
// GlobalIntegrity defines a zkp integrity proof for the entire DID namespace
|
|
||||||
GlobalIntegrity global_integrity = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// GlobalIntegrity defines a zkp integrity proof for the entire DID namespace
|
|
||||||
message GlobalIntegrity {
|
|
||||||
string controller = 1;
|
|
||||||
string seed = 2;
|
|
||||||
bytes accumulator = 3;
|
|
||||||
uint64 count = 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Params defines the set of module parameters.
|
// Params defines the set of module parameters.
|
||||||
|
@ -49,9 +49,7 @@ func DefaultGenesis() *GenesisState {
|
|||||||
// failure.
|
// failure.
|
||||||
func (gs GenesisState) Validate() error {
|
func (gs GenesisState) Validate() error {
|
||||||
// this line is used by starport scaffolding # genesis/types/validate
|
// this line is used by starport scaffolding # genesis/types/validate
|
||||||
if gs.GlobalIntegrity == nil {
|
|
||||||
return fmt.Errorf("global integrity proof is nil")
|
|
||||||
}
|
|
||||||
return gs.Params.Validate()
|
return gs.Params.Validate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|||||||
type GenesisState struct {
|
type GenesisState struct {
|
||||||
// Params defines all the parameters of the module.
|
// Params defines all the parameters of the module.
|
||||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||||
// GlobalIntegrity defines a zkp integrity proof for the entire DID namespace
|
|
||||||
GlobalIntegrity *GlobalIntegrity `protobuf:"bytes,2,opt,name=global_integrity,json=globalIntegrity,proto3" json:"global_integrity,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *GenesisState) Reset() { *m = GenesisState{} }
|
func (m *GenesisState) Reset() { *m = GenesisState{} }
|
||||||
@ -72,82 +70,6 @@ func (m *GenesisState) GetParams() Params {
|
|||||||
return Params{}
|
return Params{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *GenesisState) GetGlobalIntegrity() *GlobalIntegrity {
|
|
||||||
if m != nil {
|
|
||||||
return m.GlobalIntegrity
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GlobalIntegrity defines a zkp integrity proof for the entire DID namespace
|
|
||||||
type GlobalIntegrity struct {
|
|
||||||
Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"`
|
|
||||||
Seed string `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"`
|
|
||||||
Accumulator []byte `protobuf:"bytes,3,opt,name=accumulator,proto3" json:"accumulator,omitempty"`
|
|
||||||
Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) Reset() { *m = GlobalIntegrity{} }
|
|
||||||
func (m *GlobalIntegrity) String() string { return proto.CompactTextString(m) }
|
|
||||||
func (*GlobalIntegrity) ProtoMessage() {}
|
|
||||||
func (*GlobalIntegrity) Descriptor() ([]byte, []int) {
|
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{1}
|
|
||||||
}
|
|
||||||
func (m *GlobalIntegrity) XXX_Unmarshal(b []byte) error {
|
|
||||||
return m.Unmarshal(b)
|
|
||||||
}
|
|
||||||
func (m *GlobalIntegrity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
||||||
if deterministic {
|
|
||||||
return xxx_messageInfo_GlobalIntegrity.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 *GlobalIntegrity) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_GlobalIntegrity.Merge(m, src)
|
|
||||||
}
|
|
||||||
func (m *GlobalIntegrity) XXX_Size() int {
|
|
||||||
return m.Size()
|
|
||||||
}
|
|
||||||
func (m *GlobalIntegrity) XXX_DiscardUnknown() {
|
|
||||||
xxx_messageInfo_GlobalIntegrity.DiscardUnknown(m)
|
|
||||||
}
|
|
||||||
|
|
||||||
var xxx_messageInfo_GlobalIntegrity proto.InternalMessageInfo
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) GetController() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.Controller
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) GetSeed() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.Seed
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) GetAccumulator() []byte {
|
|
||||||
if m != nil {
|
|
||||||
return m.Accumulator
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) GetCount() uint64 {
|
|
||||||
if m != nil {
|
|
||||||
return m.Count
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
// Params defines the set of module parameters.
|
// Params defines the set of module parameters.
|
||||||
type Params struct {
|
type Params struct {
|
||||||
// Whitelisted Assets
|
// Whitelisted Assets
|
||||||
@ -163,7 +85,7 @@ type Params struct {
|
|||||||
func (m *Params) Reset() { *m = Params{} }
|
func (m *Params) Reset() { *m = Params{} }
|
||||||
func (*Params) ProtoMessage() {}
|
func (*Params) ProtoMessage() {}
|
||||||
func (*Params) Descriptor() ([]byte, []int) {
|
func (*Params) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{2}
|
return fileDescriptor_fda181cae44f7c00, []int{1}
|
||||||
}
|
}
|
||||||
func (m *Params) XXX_Unmarshal(b []byte) error {
|
func (m *Params) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -240,7 +162,7 @@ func (m *AssetInfo) Reset() { *m = AssetInfo{} }
|
|||||||
func (m *AssetInfo) String() string { return proto.CompactTextString(m) }
|
func (m *AssetInfo) String() string { return proto.CompactTextString(m) }
|
||||||
func (*AssetInfo) ProtoMessage() {}
|
func (*AssetInfo) ProtoMessage() {}
|
||||||
func (*AssetInfo) Descriptor() ([]byte, []int) {
|
func (*AssetInfo) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{3}
|
return fileDescriptor_fda181cae44f7c00, []int{2}
|
||||||
}
|
}
|
||||||
func (m *AssetInfo) XXX_Unmarshal(b []byte) error {
|
func (m *AssetInfo) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -326,7 +248,7 @@ func (m *Document) Reset() { *m = Document{} }
|
|||||||
func (m *Document) String() string { return proto.CompactTextString(m) }
|
func (m *Document) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Document) ProtoMessage() {}
|
func (*Document) ProtoMessage() {}
|
||||||
func (*Document) Descriptor() ([]byte, []int) {
|
func (*Document) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{4}
|
return fileDescriptor_fda181cae44f7c00, []int{3}
|
||||||
}
|
}
|
||||||
func (m *Document) XXX_Unmarshal(b []byte) error {
|
func (m *Document) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -418,7 +340,7 @@ func (m *KeyInfo) Reset() { *m = KeyInfo{} }
|
|||||||
func (m *KeyInfo) String() string { return proto.CompactTextString(m) }
|
func (m *KeyInfo) String() string { return proto.CompactTextString(m) }
|
||||||
func (*KeyInfo) ProtoMessage() {}
|
func (*KeyInfo) ProtoMessage() {}
|
||||||
func (*KeyInfo) Descriptor() ([]byte, []int) {
|
func (*KeyInfo) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{5}
|
return fileDescriptor_fda181cae44f7c00, []int{4}
|
||||||
}
|
}
|
||||||
func (m *KeyInfo) XXX_Unmarshal(b []byte) error {
|
func (m *KeyInfo) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -497,7 +419,7 @@ func (m *PubKey) Reset() { *m = PubKey{} }
|
|||||||
func (m *PubKey) String() string { return proto.CompactTextString(m) }
|
func (m *PubKey) String() string { return proto.CompactTextString(m) }
|
||||||
func (*PubKey) ProtoMessage() {}
|
func (*PubKey) ProtoMessage() {}
|
||||||
func (*PubKey) Descriptor() ([]byte, []int) {
|
func (*PubKey) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{6}
|
return fileDescriptor_fda181cae44f7c00, []int{5}
|
||||||
}
|
}
|
||||||
func (m *PubKey) XXX_Unmarshal(b []byte) error {
|
func (m *PubKey) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -589,7 +511,7 @@ func (m *PubKey_JWK) Reset() { *m = PubKey_JWK{} }
|
|||||||
func (m *PubKey_JWK) String() string { return proto.CompactTextString(m) }
|
func (m *PubKey_JWK) String() string { return proto.CompactTextString(m) }
|
||||||
func (*PubKey_JWK) ProtoMessage() {}
|
func (*PubKey_JWK) ProtoMessage() {}
|
||||||
func (*PubKey_JWK) Descriptor() ([]byte, []int) {
|
func (*PubKey_JWK) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{6, 0}
|
return fileDescriptor_fda181cae44f7c00, []int{5, 0}
|
||||||
}
|
}
|
||||||
func (m *PubKey_JWK) XXX_Unmarshal(b []byte) error {
|
func (m *PubKey_JWK) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -675,7 +597,7 @@ func (m *Service) Reset() { *m = Service{} }
|
|||||||
func (m *Service) String() string { return proto.CompactTextString(m) }
|
func (m *Service) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Service) ProtoMessage() {}
|
func (*Service) ProtoMessage() {}
|
||||||
func (*Service) Descriptor() ([]byte, []int) {
|
func (*Service) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_fda181cae44f7c00, []int{7}
|
return fileDescriptor_fda181cae44f7c00, []int{6}
|
||||||
}
|
}
|
||||||
func (m *Service) XXX_Unmarshal(b []byte) error {
|
func (m *Service) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
@ -755,7 +677,6 @@ func (m *Service) GetPermissions() map[string]string {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*GenesisState)(nil), "did.v1.GenesisState")
|
proto.RegisterType((*GenesisState)(nil), "did.v1.GenesisState")
|
||||||
proto.RegisterType((*GlobalIntegrity)(nil), "did.v1.GlobalIntegrity")
|
|
||||||
proto.RegisterType((*Params)(nil), "did.v1.Params")
|
proto.RegisterType((*Params)(nil), "did.v1.Params")
|
||||||
proto.RegisterMapType((map[string]*KeyInfo)(nil), "did.v1.Params.AllowedPublicKeysEntry")
|
proto.RegisterMapType((map[string]*KeyInfo)(nil), "did.v1.Params.AllowedPublicKeysEntry")
|
||||||
proto.RegisterType((*AssetInfo)(nil), "did.v1.AssetInfo")
|
proto.RegisterType((*AssetInfo)(nil), "did.v1.AssetInfo")
|
||||||
@ -771,71 +692,66 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("did/v1/genesis.proto", fileDescriptor_fda181cae44f7c00) }
|
func init() { proto.RegisterFile("did/v1/genesis.proto", fileDescriptor_fda181cae44f7c00) }
|
||||||
|
|
||||||
var fileDescriptor_fda181cae44f7c00 = []byte{
|
var fileDescriptor_fda181cae44f7c00 = []byte{
|
||||||
// 1012 bytes of a gzipped FileDescriptorProto
|
// 929 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x41, 0x6f, 0x1b, 0x45,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x6f, 0x1b, 0x45,
|
||||||
0x14, 0xce, 0xda, 0x89, 0x1d, 0x3f, 0x47, 0x89, 0x33, 0x75, 0xdb, 0xad, 0x05, 0x8e, 0xb1, 0x28,
|
0x14, 0xcf, 0x7a, 0x13, 0x3b, 0x7e, 0x8e, 0x52, 0x7b, 0xea, 0x96, 0xad, 0x05, 0x8e, 0xb1, 0x28,
|
||||||
0x0a, 0x08, 0xd9, 0x6a, 0x7a, 0x41, 0x15, 0x42, 0x34, 0xb4, 0x54, 0x69, 0x84, 0x14, 0x6d, 0x89,
|
0x0a, 0x08, 0xd9, 0x6a, 0x7a, 0x41, 0x55, 0x85, 0x68, 0x68, 0x41, 0xad, 0x85, 0x14, 0x6d, 0x89,
|
||||||
0x2a, 0x71, 0xb1, 0xc6, 0xbb, 0x2f, 0xf6, 0x90, 0xdd, 0x99, 0xd5, 0xcc, 0xac, 0x93, 0x3d, 0x20,
|
0x2a, 0x71, 0xb1, 0xc6, 0xbb, 0x2f, 0xf6, 0xe0, 0xdd, 0x99, 0xd5, 0xcc, 0xd8, 0xc9, 0x1e, 0xb9,
|
||||||
0xc1, 0x95, 0x13, 0xdc, 0xe0, 0x56,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 0x4d, 0x35, 0x92, 0x8f, 0xa0, 0x9c, 0x51, 0x49, 0x53,
|
||||||
0x4a, 0x9a, 0x28, 0xdf, 0xeb, 0x79, 0xbb, 0xcd, 0xbd, 0xcd, 0x41, 0x71, 0xe5, 0xe0, 0xc8, 0xa2,
|
0x15, 0x78, 0x1d, 0xef, 0xb0, 0x76, 0xb4, 0xdf, 0x2b, 0x22, 0xf6, 0x4e, 0x2c, 0x7a, 0xbc, 0xfd,
|
||||||
0xfb, 0xab, 0x2f, 0xff, 0xd8, 0x59, 0x09, 0x9c, 0x0f, 0xd9, 0x87, 0xd6, 0x24, 0x16, 0x63, 0x1a,
|
0xea, 0xf7, 0x83, 0xad, 0xd0, 0xf9, 0x74, 0xff, 0x2e, 0x41, 0xb9, 0x30, 0x90, 0x4f, 0x81, 0x9c,
|
||||||
0x8f, 0x18, 0xd7, 0x38, 0x91, 0x4c, 0xe7, 0x7e, 0xc5, 0x9e, 0xbb, 0x5d, 0x9e, 0x7b, 0x62, 0xed,
|
0x4f, 0x98, 0xc6, 0x84, 0x29, 0x8d, 0xf1, 0x90, 0x2a, 0x85, 0xda, 0x04, 0xf1, 0x0f, 0x6b, 0x47,
|
||||||
0x07, 0xa5, 0x39, 0xd8, 0x9a, 0xbc, 0x0e, 0xf4, 0xbf, 0x81, 0xad, 0x25, 0x1f, 0xd2, 0x05, 0x08,
|
0x8d, 0x45, 0x90, 0x47, 0x06, 0x7d, 0xca, 0xcf, 0x44, 0xd8, 0x58, 0x73, 0xb6, 0xa8, 0x22, 0xa7,
|
||||||
0x05, 0xd7, 0x52, 0xc4, 0x31, 0x4a, 0x1b, 0x48, 0x23, 0x58, 0x40, 0x08, 0x81, 0x55, 0x85, 0x18,
|
0x70, 0x93, 0x26, 0x89, 0x38, 0xc7, 0x78, 0x98, 0xcd, 0x46, 0x09, 0x8b, 0x86, 0x53, 0xcc, 0x55,
|
||||||
0xd9, 0xa7, 0x1a, 0x81, 0x95, 0x49, 0x0f, 0x9a, 0x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dd, 0x95, 0xaf, 0xfa, 0x13, 0xa6, 0xa7, 0xd9, 0x78,
|
|
||||||
0x10, 0x8a, 0x64, 0x28, 0xb8, 0x12, 0x5c, 0x0e, 0xed, 0xe7, 0x7c, 0x68, 0x76, 0xa9, 0x21, 0x51,
|
|
||||||
0x8d, 0x6b, 0xf6, 0xdf, 0xfc, 0xfe, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x0f, 0xed, 0x14,
|
|
||||||
0x16, 0x08, 0x00, 0x00,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Params) Equal(that interface{}) bool {
|
func (this *Params) Equal(that interface{}) bool {
|
||||||
@ -906,18 +822,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
if m.GlobalIntegrity != nil {
|
|
||||||
{
|
|
||||||
size, err := m.GlobalIntegrity.MarshalToSizedBuffer(dAtA[:i])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
i -= size
|
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(size))
|
|
||||||
}
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x12
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
|
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -931,55 +835,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *GlobalIntegrity) 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 *GlobalIntegrity) MarshalTo(dAtA []byte) (int, error) {
|
|
||||||
size := m.Size()
|
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
||||||
i := len(dAtA)
|
|
||||||
_ = i
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.Count != 0 {
|
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(m.Count))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x20
|
|
||||||
}
|
|
||||||
if len(m.Accumulator) > 0 {
|
|
||||||
i -= len(m.Accumulator)
|
|
||||||
copy(dAtA[i:], m.Accumulator)
|
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(len(m.Accumulator)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x1a
|
|
||||||
}
|
|
||||||
if len(m.Seed) > 0 {
|
|
||||||
i -= len(m.Seed)
|
|
||||||
copy(dAtA[i:], m.Seed)
|
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(len(m.Seed)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x12
|
|
||||||
}
|
|
||||||
if len(m.Controller) > 0 {
|
|
||||||
i -= len(m.Controller)
|
|
||||||
copy(dAtA[i:], m.Controller)
|
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(len(m.Controller)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0xa
|
|
||||||
}
|
|
||||||
return len(dAtA) - i, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Params) Marshal() (dAtA []byte, err error) {
|
func (m *Params) Marshal() (dAtA []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
dAtA = make([]byte, size)
|
dAtA = make([]byte, size)
|
||||||
@ -1519,34 +1374,6 @@ func (m *GenesisState) Size() (n int) {
|
|||||||
_ = l
|
_ = l
|
||||||
l = m.Params.Size()
|
l = m.Params.Size()
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
n += 1 + l + sovGenesis(uint64(l))
|
||||||
if m.GlobalIntegrity != nil {
|
|
||||||
l = m.GlobalIntegrity.Size()
|
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *GlobalIntegrity) Size() (n int) {
|
|
||||||
if m == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
l = len(m.Controller)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
|
||||||
}
|
|
||||||
l = len(m.Seed)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
|
||||||
}
|
|
||||||
l = len(m.Accumulator)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
|
||||||
}
|
|
||||||
if m.Count != 0 {
|
|
||||||
n += 1 + sovGenesis(uint64(m.Count))
|
|
||||||
}
|
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1879,209 +1706,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
case 2:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field GlobalIntegrity", wireType)
|
|
||||||
}
|
|
||||||
var msglen int
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
msglen |= int(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if msglen < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + msglen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
if m.GlobalIntegrity == nil {
|
|
||||||
m.GlobalIntegrity = &GlobalIntegrity{}
|
|
||||||
}
|
|
||||||
if err := m.GlobalIntegrity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
iNdEx = postIndex
|
|
||||||
default:
|
|
||||||
iNdEx = preIndex
|
|
||||||
skippy, err := skipGenesis(dAtA[iNdEx:])
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
iNdEx += skippy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if iNdEx > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func (m *GlobalIntegrity) 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 ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
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: GlobalIntegrity: wiretype end group for non-group")
|
|
||||||
}
|
|
||||||
if fieldNum <= 0 {
|
|
||||||
return fmt.Errorf("proto: GlobalIntegrity: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
||||||
}
|
|
||||||
switch fieldNum {
|
|
||||||
case 1:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
|
|
||||||
}
|
|
||||||
var stringLen uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
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 ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + intStringLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.Controller = string(dAtA[iNdEx:postIndex])
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 2:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Seed", wireType)
|
|
||||||
}
|
|
||||||
var stringLen uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
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 ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + intStringLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.Seed = string(dAtA[iNdEx:postIndex])
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 3:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Accumulator", wireType)
|
|
||||||
}
|
|
||||||
var byteLen int
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
byteLen |= int(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if byteLen < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + byteLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.Accumulator = append(m.Accumulator[:0], dAtA[iNdEx:postIndex]...)
|
|
||||||
if m.Accumulator == nil {
|
|
||||||
m.Accumulator = []byte{}
|
|
||||||
}
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 4:
|
|
||||||
if wireType != 0 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
|
|
||||||
}
|
|
||||||
m.Count = 0
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
m.Count |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipGenesis(dAtA[iNdEx:])
|
skippy, err := skipGenesis(dAtA[iNdEx:])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user