Struct world_id::Id [] [src]

pub struct Id { /* fields omitted */ }

The main identity struct.

Methods

impl Id
[src]

[src]

[src]

Creates a new Id descended from self, with the public key from new_keypair and signed with the private key from old_keypair (ie, the one self was created with.

[src]

[src]

[src]

Returns whether or not the given message and signature were signed with this ID's private key.

[src]

Returns whether or not the given child was signed with this ID's private key.

Only verifies that one Id, not a whole chain, so it does not check intermediate Id's. ie, if c descends from b descends from a, a.verify_child(c) returns false.

Trait Implementations

impl Debug for Id
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Id
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Id
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Id
[src]

impl Display for Id
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Id

impl Sync for Id