Skip to content

Commit

Permalink
dotbitprefix
Browse files Browse the repository at this point in the history
  • Loading branch information
457813723 committed Apr 10, 2023
1 parent 8776514 commit 2f998b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module das_sub_account
go 1.16

require (
github.com/dotbitHQ/das-lib v1.0.2-0.20230410033543-e39d94f3817d
github.com/dotbitHQ/das-lib v1.0.2-0.20230410064753-d92e496519f2
github.com/fsnotify/fsnotify v1.5.4
github.com/gin-gonic/gin v1.7.2
github.com/go-redis/redis v6.15.9+incompatible
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5O
github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk=
github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y=
github.com/dotbitHQ/das-lib v1.0.2-0.20230410033543-e39d94f3817d h1:YP38yxzFYkkxAE8M/GZFbc4OYfVxsC89PIPg7Iahh7g=
github.com/dotbitHQ/das-lib v1.0.2-0.20230410033543-e39d94f3817d/go.mod h1:7PK7l6ncAlsbY1nlTfavVrGJqZi689tFKTjio3XVq7Q=
github.com/dotbitHQ/das-lib v1.0.2-0.20230410064753-d92e496519f2 h1:duH48cj0DvaNmQsnjtGRriBFyvEeJNwGsE55Z1hfx68=
github.com/dotbitHQ/das-lib v1.0.2-0.20230410064753-d92e496519f2/go.mod h1:7PK7l6ncAlsbY1nlTfavVrGJqZi689tFKTjio3XVq7Q=
github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts=
github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819 h1:RIB4cRk+lBqKK3Oy0r2gRX4ui7tuhiZq2SuTtTCi0/0=
Expand Down
4 changes: 2 additions & 2 deletions http_server/handle/sub_account_edit_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (u *UpdateSubAccountCache) GetEditSignData(daf *core.DasAddressFormat, subA
}

bys, _ := blake2b.Blake256(data)
signData.SignMsg = common.PersonSignPrefix + hex.EncodeToString(bys)
signData.SignMsg = common.DotBitPrefix + hex.EncodeToString(bys)
log.Info("GetEditSignData:", u.ExpiredAt, signData.SignMsg)
return
}
Expand All @@ -420,7 +420,7 @@ func (u *UpdateSubAccountCache) GetCreateSignData(acc *tables.TableAccountInfo,
apiResp.ApiRespErr(api_code.ApiCodeError500, fmt.Sprintf("blake2b.Blake256 err: %s", err.Error()))
return
}
signData.SignMsg = common.PersonSignPrefix + hex.EncodeToString(bys)
signData.SignMsg = common.DotBitPrefix + hex.EncodeToString(bys)
log.Info("GetCreateSignData:", signData.SignMsg, u.MinSignInfo.ExpiredAt, u.MinSignInfo.SmtRoot)
// sig msg
signData.SignType = acc.ManagerAlgorithmId
Expand Down

0 comments on commit 2f998b8

Please sign in to comment.