hackbg / hackbg/fadroma

Agent class should be able to use keys added via `secretcli add`

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
enhancement secretcli ts
Dominant language
TypeScript
Stars
53
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Option 1.** Use something similar to https://github.com/zealic/go2node to get private keys from the system keyring by the same means as `secretcli`.

* https://github.com/enigmampc/cosmos-sdk/blob/master/crypto/keyring/keyring.go
* https://github.com/enigmampc/cosmos-sdk/blob/master/client/keys/add.go
* https://github.com/enigmampc/SecretNetwork/blob/master/cmd/secretcli/main.go

This looks like it would necessitate a custom Go binary based on secretcli to be built for different platforms.

**Option 2.** The alternative would be to talk to the supported keyrings directly from JS:

```go
const (
BackendFile = "file"
BackendOS = "os"
BackendKWallet = "kwallet"
BackendPass = "pass"
BackendTest = "test"
BackendMemory = "memory"
)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.