@did-btc1/method / Btc1DidDocumentBuilder
Class: Btc1DidDocumentBuilder
Defined in: packages/method/src/utils/did-document-builder.ts:5
Constructors
Constructor
> new Btc1DidDocumentBuilder(initialDocument
): Btc1DidDocumentBuilder
Defined in: packages/method/src/utils/did-document-builder.ts:8
Parameters
initialDocument
Partial
<Btc1DidDocument
>
Returns
Btc1DidDocumentBuilder
Methods
build()
> build(): Btc1DidDocument
Defined in: packages/method/src/utils/did-document-builder.ts:62
Returns
withAssertionMethod()
> withAssertionMethod(assertionMethod
): this
Defined in: packages/method/src/utils/did-document-builder.ts:34
Parameters
assertionMethod
(string
| Btc1VerificationMethod
)[]
Returns
this
withAuthentication()
> withAuthentication(authentication
): this
Defined in: packages/method/src/utils/did-document-builder.ts:27
Parameters
authentication
(string
| Btc1VerificationMethod
)[]
Returns
this
withCapabilityDelegation()
> withCapabilityDelegation(capabilityDelegation
): this
Defined in: packages/method/src/utils/did-document-builder.ts:48
Parameters
capabilityDelegation
(string
| Btc1VerificationMethod
)[]
Returns
this
withCapabilityInvocation()
> withCapabilityInvocation(capabilityInvocation
): this
Defined in: packages/method/src/utils/did-document-builder.ts:41
Parameters
capabilityInvocation
(string
| Btc1VerificationMethod
)[]
Returns
this
withController()
> withController(controller?
): this
Defined in: packages/method/src/utils/did-document-builder.ts:20
Parameters
controller?
string
[]
Returns
this
withService()
> withService(service
): this
Defined in: packages/method/src/utils/did-document-builder.ts:55
Parameters
service
Returns
this