Accessing private key, via keyring programatically

37 Views Asked by At

I have created a keyring for my cosmos chain using the "--keyring-backend file" I want to be able to access this in one of my external services to the chain, running on the alongside the node

reader := bytes.NewBufferString(passwd)
reader.WriteByte('\n')
keyring.New(sdk.KeyringServiceName(), keyring.BackendFile, cliDir, reader)

This panics with

too many failed passphrase attempts [recovered]
0

There are 0 best solutions below