Skip to content

Commit

Permalink
chore: refactor gabi bigint wrapper method name
Browse files Browse the repository at this point in the history
  • Loading branch information
sietseringers committed Mar 4, 2020
1 parent 009b707 commit e83d71d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion irma_signature.go
Expand Up @@ -53,7 +53,7 @@ func (sm *SignedMessage) Disclosure() *Disclosure {
// where serverNonce is the nonce sent by the signature requestor.
func ASN1ConvertSignatureNonce(message string, nonce *big.Int, timestamp *atum.Timestamp) *big.Int {
msgHash := sha256.Sum256([]byte(message))
n := nonce.Value()
n := nonce.Go()
if n == nil {
n = gobig.NewInt(0)
}
Expand Down
6 changes: 3 additions & 3 deletions timestamp.go
Expand Up @@ -37,7 +37,7 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
// Convert the sigs and disclosed (double) slices to (double) slices of gobig.Int's for asn1
sigsint := make([]*gobig.Int, len(sigs))
for i, k := range sigs {
sigsint[i] = k.Value()
sigsint[i] = k.Go()
}

timestampServerUrl := ""
Expand All @@ -52,7 +52,7 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
if !new {
disclosedint[i] = make([]*gobig.Int, len(disclosed[i]))
for j, k := range disclosed[i] {
disclosedint[i][j] = k.Value()
disclosedint[i][j] = k.Go()
}
} else {
if len(disclosed[i]) < 2 || disclosed[i][1].Cmp(bigZero) == 0 {
Expand All @@ -66,7 +66,7 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
if err != nil {
return nil, "", err
}
dlreps[i] = r.Value()
dlreps[i] = r.Go()
}

// Determine timestamp server that should be used
Expand Down

0 comments on commit e83d71d

Please sign in to comment.