Skip to content

how to sign a msg hash instead of msg with rust bindings? #229

Closed
@zhiqiangxu

Description

@zhiqiangxu

It's not crystally clear from the signatures alone here:

pub fn sign(
                &self,
                msg: &[u8],
                dst: &[u8],
                aug: &[u8],
            )

The golang version is much clearer and can be tuned here:

	if useHash {
		q = HashToG2(msg, dst, augSingle)
	} else {
		q = EncodeToG2(msg, dst, augSingle)
	}

How to make sign do EncodeToG2 instead of HashToG2 in rust?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions