mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
feature/did accounts (#23)
* feat: add support for DID number as primary key for Controllers * refactor: rename pkg/proxy to app/proxy * feat: add vault module keeper tests * feat(vault): add DID keeper to vault module * refactor: move vault client code to its own package * refactor(vault): extract schema definition * refactor: use vaulttypes for MsgAllocateVault * refactor: update vault assembly logic to use new methods * feat: add dwn-proxy command * refactor: remove unused context.go file * refactor: remove unused web-related code * feat: add DWN proxy server * feat: add BuildTx RPC to vault module * fix: Implement BuildTx endpoint * feat: add devbox integration to project
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/internal/orm" }
|
||||
@go.Package { name = "github.com/onsonr/sonr/x/did/types/orm" }
|
||||
|
||||
module orm
|
||||
module models
|
||||
|
||||
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
||||
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/internal/orm/browser" }
|
||||
|
||||
module browser
|
||||
|
||||
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
||||
|
||||
|
||||
class JsonField extends go.Field {
|
||||
structTags {
|
||||
["json"] = "%{name},omitempty"
|
||||
}
|
||||
}
|
||||
|
||||
class PublicKeyCredentialRequestOptions {
|
||||
challenge: String
|
||||
timeout: Int
|
||||
rpId: String
|
||||
allowCredentials: List<PublicKeyCredentialDescriptor>
|
||||
userVerification: String
|
||||
extensions: List<PublicKeyCredentialParameters>
|
||||
}
|
||||
|
||||
class PublicKeyCredentialDescriptor {
|
||||
id: String
|
||||
transports: List<String>
|
||||
type: String
|
||||
}
|
||||
|
||||
class PublicKeyCredentialParameters {
|
||||
type: String
|
||||
alg: Int?
|
||||
}
|
||||
|
||||
class AuthenticatorSelectionCriteria {
|
||||
authenticatorAttachment: String
|
||||
requireResidentKey: Boolean
|
||||
userVerification: String
|
||||
}
|
||||
|
||||
|
||||
class PublicKeyCredentialCreationOptions {
|
||||
rp: RpEntity
|
||||
user: UserEntity
|
||||
challenge: String
|
||||
pubKeyCredParams: List<PublicKeyCredentialParameters>
|
||||
timeout: Int
|
||||
excludeCredentials: List<PublicKeyCredentialDescriptor>
|
||||
authenticatorSelection: AuthenticatorSelectionCriteria?
|
||||
attestation: String
|
||||
extensions: List<PublicKeyCredentialParameters>
|
||||
}
|
||||
|
||||
class RpEntity {
|
||||
id: String
|
||||
name: String?
|
||||
icon: String?
|
||||
}
|
||||
|
||||
class UserEntity {
|
||||
id: String
|
||||
displayName: String?
|
||||
name: String?
|
||||
}
|
||||
|
||||
class SWT {
|
||||
origin: String
|
||||
location: String
|
||||
identifier: String
|
||||
scopes: List<String>
|
||||
properties: Map<String, String>
|
||||
expiryBlock: Int
|
||||
}
|
||||
Reference in New Issue
Block a user