Comments (2)
as you can see from these screens, ERROR:did_service:ErrorCode.CommonInvalidStructure didn't give enough information before. but the real reason was in parameter format.
When I call this function with these params :
DID format :
Seed format:
For example, for these params everything works good.
Did : Y87wM6ceVarBmzcPTqPGdw
Seed: b2fff055f8d649d0e91ac71e889ba849372612d3ff2968109245cad79770b3d1
client code example :
seed,err := base58.Decode("D3jvacNU1TCUFXkM8mJAr5zcPpXdvMgzFqUVeTP4BJqE")
hexSeed := hex.EncodeToString(seed)
pub, _, err := ed25519.GenerateKey(bytes.NewReader(seed))
encodedDID := base58.Encode(pub[:16])
fmt.Println(encodedDID) //len(encodedDID) = 22, encoded 16 byte value
fmt.Println(hexSeed)
csResponse, err := didServiceClient.CreateAndStoreMyDid(context.Background(),
&identitylayer.CreateAndStoreMyDidRequest{WalletHandle: walletResponse.WalletHandle,
DidJson: &identitylayer.CreateAndStoreMyDidJsonMessage{
Did: encodedDID,
Seed: hexSeed,
CryptoType: "ed25519",
Cid: false,
}})
from miu.
thanks for highlighting the short-comings - whole error handling layer needs major overhaul! I am gonna start looking into that as time permits. Much appreciated!
from miu.
Related Issues (18)
- Common IO Error IndyError, when creating configPool HOT 2
- Multiple 'No positional arguments allowed'.No Handling for specific IndyError HOT 2
- Return Wallet / Pool Handler of already opened wallet / pool together with Message 'AlreadyOpened' HOT 6
- ListPools doesn't return list of pools for now.
- gRPC Wallet client example
- Dockerize Miu HOT 1
- Enable TLS connection between server & client
- Test Miu on ARM 32/64 platform HOT 3
- gRPC Pool Client example HOT 1
- gRPC Anoncreds client example HOT 2
- gRPC Crypto client exmaple
- gRPC Ledger example client
- gRPC DID client example
- gRPC NonSecret client example
- gRPC Pairwise client example
- DidSetKeyMetadata returns incorrect response
- keyJson has incorrect datastructure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miu.