refactor: use RawPublicKey instead of PublicKey in macaroon issuer

This commit is contained in:
Prad Nukala committed 2024-10-18 14:09:16 -04:00
1 parent 6da6f2b97b
commit a0a5f0c7e0
5 files changed
+19 -17

No files matched your search

+2 -4
View File
@@ -5,7 +5,6 @@ import (
"github.com/onsonr/crypto/mpc"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
didv1 "github.com/onsonr/sonr/api/did/v1"
)
@@ -16,8 +15,8 @@ type ControllerI interface {
SonrAddress() string
EthAddress() string
BtcAddress() string
// RawPublicKey() []byte
StdPublicKey() cryptotypes.PubKey
RawPublicKey() []byte
// StdPublicKey() cryptotypes.PubKey
GetTableEntry() (*didv1.Controller, error)
ExportUserKs() (string, error)
}
@@ -123,7 +122,6 @@ func (c *controller) RawPublicKey() []byte {
return c.publicKey
}
//
// func (c *controller) StdPublicKey() cryptotypes.PubKey {
// return c.stdPubKey
// }