Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidSignature = errors.New("failed to verify signature for DApp")
Functions ¶
This section is empty.
Types ¶
type BoltDAppStorage ¶
type BoltDAppStorage struct {
// contains filtered or unexported fields
}
func NewDAppStorage ¶
func NewDAppStorage(db *storm.DB, api *uiapi.Api) *BoltDAppStorage
func (*BoltDAppStorage) All ¶
func (s *BoltDAppStorage) All() ([]*Data, error)
func (*BoltDAppStorage) Get ¶
func (s *BoltDAppStorage) Get(signingKey ed25519.PublicKey) (*Data, error)
func (*BoltDAppStorage) SaveDApp ¶
func (s *BoltDAppStorage) SaveDApp(dApp Data) error
type DApp ¶
type DApp struct {
// contains filtered or unexported fields
}
type Data ¶
type Data struct { Name map[string]string UsedSigningKey ed25519.PublicKey `storm:"id"` Code []byte Image []byte Signature []byte Engine SV Version int }
JSON Representation of published DApp
func ParseJsonToData ¶
func (Data) VerifySignature ¶
verify if this published DApp was signed with the attached public key
Click to show internal directories.
Click to hide internal directories.