Sha256: 6253f4faa83f1fd4d7419d3db8a606d8f7fca58b21a2046a0770f272db0a8b7e
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
module Sidetree module OP module Type CREATE = "create" UPDATE = "update" RECOVER = "recover" DEACTIVATE = "deactivate" end # Sidetree patch actions. These are the valid values in the action property of a patch. module PatchAction REPLACE = "replace" ADD_PUBLIC_KEYS = "add-public-keys" REMOVE_PUBLIC_KEYS = "remove-public-keys" ADD_SERVICES = "add-services" REMOVE_SERVICES = "remove-services" end # DID Document public key purpose. module PublicKeyPurpose AUTHENTICATION = "authentication" ASSERTION_METHOD = "assertionMethod" CAPABILITY_INVOCATION = "capabilityInvocation" CAPABILITY_DELEGATION = "capabilityDelegation" KEY_AGREEMENT = "keyAgreement" module_function def values PublicKeyPurpose.constants.map { |c| PublicKeyPurpose.const_get(c) } end end autoload :Base, "sidetree/op/base" autoload :Updatable, "sidetree/op/updatable" autoload :Create, "sidetree/op/create" autoload :Recover, "sidetree/op/recover" autoload :Update, "sidetree/op/update" autoload :Deactivate, "sidetree/op/deactivate" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sidetree-0.1.5 | lib/sidetree/op.rb |
sidetree-0.1.4 | lib/sidetree/op.rb |
sidetree-0.1.3 | lib/sidetree/op.rb |
sidetree-0.1.2 | lib/sidetree/op.rb |