Documentation ¶
Index ¶
- Constants
- func ConvertBodyScheme(in string) iapi.AttestationBodyScheme
- func ConvertEntitySecret(ctx context.Context, in *pb.EntitySecret) (*iapi.EntitySecrets, wve.WVE)
- func ConvertEntityWVal(e *iapi.Entity, v *engine.Validity) *pb.Entity
- func ConvertHashScheme(in string) iapi.HashScheme
- func ConvertLookupResult(r *engine.LookupResult) *pb.Attestation
- func ConvertNDWVal(nd *iapi.NameDeclaration, v *engine.Validity) *pb.NameDeclaration
- func ConvertProofAttestation(a *iapi.Attestation) *pb.Attestation
- func LocationSchemeInstance(in *pb.Location) (iapi.LocationSchemeInstance, wve.WVE)
- func TimeFromInt64MillisWithDefault(v int64, def time.Time) *time.Time
- func ToError(e wve.WVE) *pb.Error
- func ToPbLocation(in iapi.LocationSchemeInstance) *pb.Location
- func ToPbPolicy(in iapi.PolicySchemeInstance) *pb.Policy
- type EAPI
- func (e *EAPI) AddAttestation(ctx context.Context, p *pb.AddAttestationParams) (*pb.AddAttestationResponse, error)
- func (e *EAPI) BuildRTreeProof(ctx context.Context, p *pb.BuildRTreeProofParams) (*pb.BuildRTreeProofResponse, error)
- func (e *EAPI) CompactProof(ctx context.Context, p *pb.CompactProofParams) (*pb.CompactProofResponse, error)
- func (e *EAPI) ConvertPolicy(in *pb.Policy) (iapi.PolicySchemeInstance, wve.WVE)
- func (e *EAPI) CreateAttestation(ctx context.Context, p *pb.CreateAttestationParams) (*pb.CreateAttestationResponse, error)
- func (e *EAPI) CreateEntity(ctx context.Context, p *pb.CreateEntityParams) (*pb.CreateEntityResponse, error)
- func (e *EAPI) CreateNameDeclaration(ctx context.Context, p *pb.CreateNameDeclarationParams) (*pb.CreateNameDeclarationResponse, error)
- func (e *EAPI) DecryptMessage(ctx context.Context, p *pb.DecryptMessageParams) (*pb.DecryptMessageResponse, error)
- func (e *EAPI) EncryptMessage(ctx context.Context, p *pb.EncryptMessageParams) (*pb.EncryptMessageResponse, error)
- func (e *EAPI) Inspect(ctx context.Context, p *pb.InspectParams) (*pb.InspectResponse, error)
- func (e *EAPI) ListLocations(ctx context.Context, p *pb.ListLocationsParams) (*pb.ListLocationsResponse, error)
- func (e *EAPI) LookupAttestations(ctx context.Context, p *pb.LookupAttestationsParams) (*pb.LookupAttestationsResponse, error)
- func (e *EAPI) MarkEntityInteresting(ctx context.Context, p *pb.MarkEntityInterestingParams) (*pb.MarkEntityInterestingResponse, error)
- func (e *EAPI) PublishAttestation(ctx context.Context, p *pb.PublishAttestationParams) (*pb.PublishAttestationResponse, error)
- func (e *EAPI) PublishEntity(ctx context.Context, p *pb.PublishEntityParams) (*pb.PublishEntityResponse, error)
- func (e *EAPI) ResolveHash(ctx context.Context, p *pb.ResolveHashParams) (*pb.ResolveHashResponse, error)
- func (e *EAPI) ResolveName(ctx context.Context, p *pb.ResolveNameParams) (*pb.ResolveNameResponse, error)
- func (e *EAPI) ResolveReverseName(ctx context.Context, p *pb.ResolveReverseNameParams) (*pb.ResolveReverseNameResponse, error)
- func (e *EAPI) ResyncPerspectiveGraph(ctx context.Context, p *pb.ResyncPerspectiveGraphParams) (*pb.ResyncPerspectiveGraphResponse, error)
- func (e *EAPI) Revoke(ctx context.Context, p *pb.RevokeParams) (*pb.RevokeResponse, error)
- func (e *EAPI) Sign(ctx context.Context, p *pb.SignParams) (*pb.SignResponse, error)
- func (e *EAPI) StartServer(listenaddr string, httplistenaddr string)
- func (e *EAPI) SyncStatus(ctx context.Context, p *pb.SyncParams) (*pb.SyncResponse, error)
- func (e *EAPI) VerifyProof(ctx context.Context, p *pb.VerifyProofParams) (*pb.VerifyProofResponse, error)
- func (e *EAPI) VerifySignature(ctx context.Context, p *pb.VerifySignatureParams) (*pb.VerifySignatureResponse, error)
- func (e *EAPI) WaitForSyncComplete(p *pb.SyncParams, srv pb.WAVE_WaitForSyncCompleteServer) error
- func (e *EAPI) WaitForSyncCompleteHack(p *pb.SyncParams) error
Constants ¶
View Source
const BodySchemePlaintext = "1.3.6.1.4.1.51157.3.1"
View Source
const BodySchemeWaveRef1 = "1.3.6.1.4.1.51157.3.2"
View Source
const PEM_ATTESTATION = "WAVE ATTESTATION"
View Source
const PEM_ENTITY = "WAVE ENTITY"
View Source
const PEM_ENTITY_SECRET = "WAVE ENTITY SECRET"
View Source
const PEM_EXPLICIT_PROOF = "WAVE EXPLICIT PROOF"
Variables ¶
This section is empty.
Functions ¶
func ConvertBodyScheme ¶
func ConvertBodyScheme(in string) iapi.AttestationBodyScheme
func ConvertEntitySecret ¶
func ConvertEntitySecret(ctx context.Context, in *pb.EntitySecret) (*iapi.EntitySecrets, wve.WVE)
func ConvertHashScheme ¶
func ConvertHashScheme(in string) iapi.HashScheme
func ConvertLookupResult ¶
func ConvertLookupResult(r *engine.LookupResult) *pb.Attestation
func ConvertNDWVal ¶ added in v0.2.0
func ConvertNDWVal(nd *iapi.NameDeclaration, v *engine.Validity) *pb.NameDeclaration
func ConvertProofAttestation ¶
func ConvertProofAttestation(a *iapi.Attestation) *pb.Attestation
func LocationSchemeInstance ¶
func ToPbLocation ¶
func ToPbLocation(in iapi.LocationSchemeInstance) *pb.Location
func ToPbPolicy ¶
func ToPbPolicy(in iapi.PolicySchemeInstance) *pb.Policy
Types ¶
type EAPI ¶ added in v0.1.1
type EAPI struct {
// contains filtered or unexported fields
}
func (*EAPI) AddAttestation ¶ added in v0.1.1
func (e *EAPI) AddAttestation(ctx context.Context, p *pb.AddAttestationParams) (*pb.AddAttestationResponse, error)
func (*EAPI) BuildRTreeProof ¶ added in v0.1.1
func (e *EAPI) BuildRTreeProof(ctx context.Context, p *pb.BuildRTreeProofParams) (*pb.BuildRTreeProofResponse, error)
func (*EAPI) CompactProof ¶ added in v0.2.1
func (e *EAPI) CompactProof(ctx context.Context, p *pb.CompactProofParams) (*pb.CompactProofResponse, error)
func (*EAPI) ConvertPolicy ¶ added in v0.2.1
func ToPbHash(in iapi.HashSchemeInstance) *pb.Hash { rv := &pb.Hash{} if sha3, ok := in.(*iapi.HashSchemeInstance_Sha3_256); ok { rv.Sha3_256 = sha3.Value() return rv } if keccak, ok := in.(*iapi.HashSchemeInstance_Keccak_256); ok { rv.Keccak256 = keccak.Value() return rv } panic("unknown hash") }
func (*EAPI) CreateAttestation ¶ added in v0.1.1
func (e *EAPI) CreateAttestation(ctx context.Context, p *pb.CreateAttestationParams) (*pb.CreateAttestationResponse, error)
func (*EAPI) CreateEntity ¶ added in v0.1.1
func (e *EAPI) CreateEntity(ctx context.Context, p *pb.CreateEntityParams) (*pb.CreateEntityResponse, error)
func (*EAPI) CreateNameDeclaration ¶ added in v0.2.0
func (e *EAPI) CreateNameDeclaration(ctx context.Context, p *pb.CreateNameDeclarationParams) (*pb.CreateNameDeclarationResponse, error)
func (*EAPI) DecryptMessage ¶ added in v0.2.0
func (e *EAPI) DecryptMessage(ctx context.Context, p *pb.DecryptMessageParams) (*pb.DecryptMessageResponse, error)
func (*EAPI) EncryptMessage ¶ added in v0.2.0
func (e *EAPI) EncryptMessage(ctx context.Context, p *pb.EncryptMessageParams) (*pb.EncryptMessageResponse, error)
func (*EAPI) Inspect ¶ added in v0.1.1
func (e *EAPI) Inspect(ctx context.Context, p *pb.InspectParams) (*pb.InspectResponse, error)
func (*EAPI) ListLocations ¶ added in v0.1.1
func (e *EAPI) ListLocations(ctx context.Context, p *pb.ListLocationsParams) (*pb.ListLocationsResponse, error)
func (*EAPI) LookupAttestations ¶ added in v0.1.1
func (e *EAPI) LookupAttestations(ctx context.Context, p *pb.LookupAttestationsParams) (*pb.LookupAttestationsResponse, error)
func (*EAPI) MarkEntityInteresting ¶ added in v0.2.0
func (e *EAPI) MarkEntityInteresting(ctx context.Context, p *pb.MarkEntityInterestingParams) (*pb.MarkEntityInterestingResponse, error)
func (*EAPI) PublishAttestation ¶ added in v0.1.1
func (e *EAPI) PublishAttestation(ctx context.Context, p *pb.PublishAttestationParams) (*pb.PublishAttestationResponse, error)
func (*EAPI) PublishEntity ¶ added in v0.1.1
func (e *EAPI) PublishEntity(ctx context.Context, p *pb.PublishEntityParams) (*pb.PublishEntityResponse, error)
func (*EAPI) ResolveHash ¶ added in v0.1.1
func (e *EAPI) ResolveHash(ctx context.Context, p *pb.ResolveHashParams) (*pb.ResolveHashResponse, error)
func (*EAPI) ResolveName ¶ added in v0.2.0
func (e *EAPI) ResolveName(ctx context.Context, p *pb.ResolveNameParams) (*pb.ResolveNameResponse, error)
func (*EAPI) ResolveReverseName ¶ added in v0.2.0
func (e *EAPI) ResolveReverseName(ctx context.Context, p *pb.ResolveReverseNameParams) (*pb.ResolveReverseNameResponse, error)
func (*EAPI) ResyncPerspectiveGraph ¶ added in v0.1.1
func (e *EAPI) ResyncPerspectiveGraph(ctx context.Context, p *pb.ResyncPerspectiveGraphParams) (*pb.ResyncPerspectiveGraphResponse, error)
func (*EAPI) Revoke ¶ added in v0.2.1
func (e *EAPI) Revoke(ctx context.Context, p *pb.RevokeParams) (*pb.RevokeResponse, error)
func (*EAPI) Sign ¶ added in v0.2.1
func (e *EAPI) Sign(ctx context.Context, p *pb.SignParams) (*pb.SignResponse, error)
func (*EAPI) StartServer ¶ added in v0.1.1
func (*EAPI) SyncStatus ¶ added in v0.1.1
func (e *EAPI) SyncStatus(ctx context.Context, p *pb.SyncParams) (*pb.SyncResponse, error)
func (*EAPI) VerifyProof ¶ added in v0.1.1
func (e *EAPI) VerifyProof(ctx context.Context, p *pb.VerifyProofParams) (*pb.VerifyProofResponse, error)
func (*EAPI) VerifySignature ¶ added in v0.2.1
func (e *EAPI) VerifySignature(ctx context.Context, p *pb.VerifySignatureParams) (*pb.VerifySignatureResponse, error)
func (*EAPI) WaitForSyncComplete ¶ added in v0.1.1
func (e *EAPI) WaitForSyncComplete(p *pb.SyncParams, srv pb.WAVE_WaitForSyncCompleteServer) error
func (*EAPI) WaitForSyncCompleteHack ¶ added in v0.2.0
func (e *EAPI) WaitForSyncCompleteHack(p *pb.SyncParams) error
Click to show internal directories.
Click to hide internal directories.