Sailfish-secrets called from QML?

Is there any documentation or examples or anything? The docs seem to suggest this is so laymen don’t need to worry about cryptography. How do you call it to generate a keypair or decode something with a private key? Is it possible from qml only?