Skip to content

Inconsistent API when building Request and Verifying Response #130

@DarkaMaul

Description

@DarkaMaul

The TimestampRequest Builder takes a message (as bytes) as parameter.

timestamp_request = (
    TimestampRequestBuilder().data(message).build()
)

But the verifier ask for a message hash.

verifier.verify(timestamp_response, message_hash)

We could also allow a message as bytes, and reconstruct the hash using the hash algorithm in the response.
That would make the API slightly more convenient to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions