Subkey port in Go
kr, err := sr25519.Scheme{}.Generate()
kr, err := ed25519.Scheme{}.Generate()
kr, err := ecdsa.Scheme{}.Generate()
uri := "crowd swamp sniff machine grid pretty client emotion banana cricket flush soap//foo//42///password"
scheme := sr25519.Scheme{}
kr, err := subkey.DeriveKeyPair(scheme, uri)
uri := "0x6ea8835d60351a39a1e2293b2902d7bd6e12e526e72c46f4fda4a233809c4379"
scheme := sr25519.Scheme{}
kr, err := subkey.DeriveKeyPair(scheme, uri)
uri := "0x6ea8835d60351a39a1e2293b2902d7bd6e12e526e72c46f4fda4a233809c4379//foo//42///password"
scheme := sr25519.Scheme{}
kr, err := subkey.DeriveKeyPair(scheme, uri)
kr, err := ed25519.Scheme{}.Generate()
msg := []byte("test message")
sig, err := kr.Sign(msg)
ok := kr.Verify(msg, sig)