Skip to content

Commit 36e5ee1

Browse files
committed
Some cleanup, v0.2.8
1 parent fd7ff0a commit 36e5ee1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commitment.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static secp256k1_pedersen_commitment** makeCommitmentsArray(int size) { return !
2424
static void setCommitmentsArray(secp256k1_pedersen_commitment** a, secp256k1_pedersen_commitment* v, int i) { if (a) a[i] = v; }
2525
static secp256k1_pedersen_commitment* getCommitmentsArray(secp256k1_pedersen_commitment** a, int i) { return !a ? NULL : a[i]; }
2626
static void freeCommitmentsArray(secp256k1_pedersen_commitment** a) { if (a) free(a); }
27-
int sum_blind_generator_blind(uint64_t v, const unsigned char* ra, unsigned char* r) {
27+
int blind_value_generator_blind_sum(uint64_t v, const unsigned char* ra, unsigned char* r) {
2828
int success = 0;
2929
int overflow = 0;
3030
secp256k1_scalar tmp, vra;
@@ -551,7 +551,7 @@ func CommitmentToPublicKey(
551551
* err == nil if success
552552
*
553553
*/
554-
func SumBlindGeneratorBlind(
554+
func BlindValueGeneratorBlindSum(
555555
v uint64,
556556
ra []byte,
557557
r []byte,
@@ -560,7 +560,7 @@ func SumBlindGeneratorBlind(
560560
err error,
561561
) {
562562
copy(result[:], r)
563-
if 1 != C.sum_blind_generator_blind(
563+
if 1 != C.blind_value_generator_blind_sum(
564564
C.uint64_t(v),
565565
cBuf(ra),
566566
cBuf(result[:]),

0 commit comments

Comments
 (0)