API¶
-
dposlib.blockchain.
link
(cls, secret=None, secondSecret=None)[source]¶ Associates crypto keys into an
Content
object according to secrets. Ifsecret
orsecondSecret
are notstr
, they are considered asNone
.Parameters: - cls (
Content
) – content object - secret (
str
) – secret string - secondSecret (
str
) – second secret string
Returns: True if secret and second secret match crypto keys
Return type: bool
- cls (
-
dposlib.blockchain.
isLinked
(func)[source]¶ Python decorator. First argument of decorated function have to be a
Content
or an object containing a validaddress
,derivationPath
orpublicKey
attribute. It executes the decoratedfunction()
if the object is correctly linked usingdposlib.blockchain.link()
.