Documentation ¶
Index ¶
- Constants
- func VerifyBlsAggSignature(blsPubKeys []bls.PublicKey, sigHash [32]byte, blsAggSig []byte) error
- func VerifyBlsSignature(blsPubKey bls.PublicKey, sigHash [32]byte, blsSig []byte) error
- func VerifySignature(sigAccAddress sdk.AccAddress, sigHash []byte, sig []byte) error
- type GRN
- func (r *GRN) GetBucketAndObjectName() (string, string, error)
- func (r *GRN) GetBucketName() (string, error)
- func (r *GRN) GetGroupOwnerAndAccount() (sdk.AccAddress, string, error)
- func (r *GRN) MustGetBucketAndObjectName() (string, string)
- func (r *GRN) MustGetBucketName() string
- func (r *GRN) MustGetGroupOwnerAndAccount() (sdk.AccAddress, string)
- func (r *GRN) ParseFromString(res string, wildcards bool) error
- func (r *GRN) ResourceType() resource.ResourceType
- func (r *GRN) String() string
Constants ¶
View Source
const ( BucketTypeAbbr = "b" ObjectTypeAbbr = "o" GroupTypeAbbr = "g" )
Variables ¶
This section is empty.
Functions ¶
func VerifyBlsAggSignature ¶ added in v0.2.3
func VerifyBlsSignature ¶ added in v0.2.3
func VerifySignature ¶ added in v0.2.3
func VerifySignature(sigAccAddress sdk.AccAddress, sigHash []byte, sig []byte) error
Types ¶
type GRN ¶
type GRN struct {
// contains filtered or unexported fields
}
GRN define a standard ResourceName format, full name: GreenFieldResourceName valid format:
bucket: "grn:b::bucketName" object: "grn:o::bucketName/objectName" group: "grn:g:ownerAddress:groupName"
Notice: all the name support wildcards
func NewBucketGRN ¶
NewBucketGRN use to generate a bucket resource with specify bucketName The bucketName support wildcards. E.g. samplebucket, sample*bucket, sample?bucket
func NewGroupGRN ¶
func NewGroupGRN(owner sdk.AccAddress, groupName string) *GRN
func NewObjectGRN ¶
func (*GRN) GetBucketName ¶
func (*GRN) GetGroupOwnerAndAccount ¶
func (r *GRN) GetGroupOwnerAndAccount() (sdk.AccAddress, string, error)
func (*GRN) MustGetBucketAndObjectName ¶
func (*GRN) MustGetBucketName ¶
func (*GRN) MustGetGroupOwnerAndAccount ¶
func (r *GRN) MustGetGroupOwnerAndAccount() (sdk.AccAddress, string)
func (*GRN) ResourceType ¶
func (r *GRN) ResourceType() resource.ResourceType
Click to show internal directories.
Click to hide internal directories.