OSDN Git Service

Merge pull request #1 from Bytom/master
[bytom/bytom.git] / blockchain / signers / signers.go
index ae372b3..523f1a8 100644 (file)
@@ -125,10 +125,12 @@ func Create(ctx context.Context, db dbm.DB, typ string, xpubs []chainkd.XPub, qu
        }
     */
        var (
-               id       string = "alice"
+               id       string
                keyIndex uint64
        )
 
+       id, keyIndex = Idgenerate(typeIDMap[typ])
+
        return &Signer{
                ID:       id,
                Type:     typ,