pub fn attenuate(
token: &str,
restrictions: &[Restriction],
) -> Result<String, Error>Expand description
Appends a block adding restrictions to token.
Needs no key: anyone holding a token can restrict it before handing it over, and the result can never grant more than the original.