-
Notifications
You must be signed in to change notification settings - Fork 0
/
DID-AuthVerifyResolve.html
46 lines (44 loc) · 1.92 KB
/
DID-AuthVerifyResolve.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<script type="text/javascript">
RED.nodes.registerType('DID-AuthVerifyResolve',{
category: 'function',
color: '#a6bbcf',
defaults: {
name: {value:""},
authority: {value:""},
rpcUrl: {value:"https://integration.corrently.io/"},
chainId: {value:'6226'},
registry: {value:"0xaC2DDf7488C1C2Dd1f8FFE36e207D8Fb96cF2fFB"},
},
inputs:1,
outputs:1,
icon: "file.png",
label: function() {
return this.name||"DID-AuthVerifyResolve";
}
});
</script>
<script type="text/html" data-template-name="DID-AuthVerifyResolve">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-authority"><i class="fa fa-tag"></i> Authority</label>
<input type="text" id="node-input-authority" placeholder="did:ethr:...">
</div>
<div class="form-row">
<label for="node-input-rpcUrl"><i class="fa fa-tag"></i> rpc URL</label>
<input type="text" id="node-input-rpcUrl" placeholder="like https://mainnet.infura.io/v3/[APIKEY]">
</div>
<div class="form-row">
<label for="node-input-chainId"><i class="fa fa-tag"></i> Chain Id</label>
<input type="text" id="node-input-chainId" placeholder="1 for mainnet">
</div>
<div class="form-row">
<label for="node-input-registry"><i class="fa fa-tag"></i> Registry (Contract Address)</label>
<input type="text" id="node-input-registry" placeholder="1 for mainnet">
</div>
</script>
<script type="text/html" data-help-name="DID-AuthVerifyResolve">
<p>Verify signed JSON Web Token (JWT) in message payload and returns only parameters permitted by authority (Requires <pre>_auth</pre> containing JWT of authorization DID).</p>
</script>