类:Verify
🌐 Class: Verify
- 扩展自: <stream.Writable>
Verify 类是一个用于验证签名的工具类。它可以通过以下两种方式之一使用:
🌐 The Verify class is a utility for verifying signatures. It can be used in one
of two ways:
- 作为可写的 溪流,其中写入的数据用于验证提供的签名,或者
- 使用
verify.update()和verify.verify()方法验证签名。
crypto.createVerify() 方法用于创建 Verify 实例。Verify 对象不应直接使用 new 关键字创建。
🌐 The crypto.createVerify() method is used to create Verify instances.
Verify objects are not to be created directly using the new keyword.
参见 Sign 示例。
🌐 See Sign for examples.