OSDN Git Service

add one id generation which account and asset use by signer
[bytom/bytom.git] / blockchain / signers / signers.go
index ae372b3..1779e2e 100644 (file)
@@ -129,6 +129,8 @@ func Create(ctx context.Context, db dbm.DB, typ string, xpubs []chainkd.XPub, qu
                keyIndex uint64
        )
 
+       id, keyIndex = Idgenerate(typeIDMap[typ])
+
        return &Signer{
                ID:       id,
                Type:     typ,