unison-share-projects-api-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Share.API.Hash

Contents

Description

Hash-related types in the Share API.

Synopsis

Hash types

newtype HashJWT Source #

Constructors

HashJWT 

Fields

Instances

Instances details
FromJSON HashJWT Source # 
Instance details

Defined in Unison.Share.API.Hash

ToJSON HashJWT Source # 
Instance details

Defined in Unison.Share.API.Hash

Show HashJWT Source # 
Instance details

Defined in Unison.Share.API.Hash

Eq HashJWT Source # 
Instance details

Defined in Unison.Share.API.Hash

Methods

(==) :: HashJWT -> HashJWT -> Bool #

(/=) :: HashJWT -> HashJWT -> Bool #

Ord HashJWT Source # 
Instance details

Defined in Unison.Share.API.Hash

hashJWTHash :: HashJWT -> Hash32 Source #

Grab the hash out of a hash JWT.

This decodes the whole JWT, then throws away the claims; use it if you really only need the hash!

data HashJWTClaims Source #

Constructors

HashJWTClaims 

Fields

Instances

Instances details
FromJSON HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

ToJSON HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

Show HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

Eq HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

Ord HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

FromJWT HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

ToJWT HashJWTClaims Source # 
Instance details

Defined in Unison.Share.API.Hash

decodeHashJWT :: HashJWT -> DecodedHashJWT Source #

Decode a hash JWT.

decodeHashJWTClaims :: HashJWT -> HashJWTClaims Source #

Decode the claims out of a hash JWT.

decodedHashJWTHash :: DecodedHashJWT -> Hash32 Source #

Grab the hash out of a decoded hash JWT.